	.file	"extr_camcontrol.c_get_cgd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"get_cgd: couldn't allocate CCB"
	.align 8
.LC1:
	.string	"get_cgd: error sending Get type information CCB"
	.text
	.p2align 4
	.type	get_cgd, @function
get_cgd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	cam_getccb@PLT
	test	rax, rax
	je	.L11
	mov	rdi, rax
	mov	rbp, rax
	call	CCB_CLEAR_ALL_EXCEPT_HDR@PLT
	mov	eax, DWORD PTR XPT_GDEV_TYPE[rip]
	mov	rsi, rbp
	mov	rdi, r12
	mov	DWORD PTR 4[rbp], eax
	call	cam_send_ccb@PLT
	test	rax, rax
	js	.L12
	mov	eax, DWORD PTR 0[rbp]
	and	eax, DWORD PTR CAM_STATUS_MASK[rip]
	cmp	eax, DWORD PTR CAM_REQ_CMP[rip]
	je	.L6
	mov	eax, DWORD PTR arglist[rip]
	mov	r13d, 1
	test	DWORD PTR CAM_ARG_VERBOSE[rip], eax
	jne	.L13
.L5:
	mov	rdi, rbp
	call	cam_freeccb@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rsi, r13
	mov	edx, 4
	mov	rdi, rbp
	xor	r13d, r13d
	call	bcopy@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r13d, 1
	lea	rdi, .LC0[rip]
	call	warnx@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r8d, DWORD PTR stderr[rip]
	mov	ecx, DWORD PTR CAM_EPF_ALL[rip]
	mov	rsi, rbp
	mov	rdi, r12
	mov	edx, DWORD PTR CAM_ESF_ALL[rip]
	call	cam_error_print@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC1[rip]
	mov	r13d, 1
	call	warn@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	get_cgd, .-get_cgd
	.comm	stderr,4,4
	.comm	arglist,4,4
	.comm	XPT_GDEV_TYPE,4,4
	.comm	CAM_STATUS_MASK,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_ESF_ALL,4,4
	.comm	CAM_EPF_ALL,4,4
	.comm	CAM_ARG_VERBOSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_camcontrol.c_get_cgd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"get_cgd: couldn't allocate CCB\000"
	.align	2
.LC1:
	.ascii	"get_cgd: error sending Get type information CCB\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cgd, %function
get_cgd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r6, r1
	mov	r5, r0
	bl	cam_getccb
	subs	r4, r0, #0
	beq	.L10
	bl	CCB_CLEAR_ALL_EXCEPT_HDR
	ldr	r3, .L13
	mov	r1, r4
	ldr	r3, [r3]
	mov	r0, r5
	str	r3, [r4, #4]
	bl	cam_send_ccb
	cmp	r0, #0
	blt	.L11
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	ldr	r1, [r3]
	ldr	r3, [r4]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r3, r2
	beq	.L6
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	moveq	r5, #1
	bne	.L12
.L5:
	mov	r0, r4
	bl	cam_freeccb
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	mov	r1, r6
	mov	r2, #4
	mov	r0, r4
	bl	bcopy
	mov	r5, #0
	b	.L5
.L10:
	mov	r5, #1
	ldr	r0, .L13+20
	bl	warnx
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r2, .L13+24
	ldr	r3, .L13+28
	ldr	r1, [r2]
	ldr	r2, .L13+32
	str	r1, [sp]
	mov	r0, r5
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	cam_error_print
	mov	r5, #1
	b	.L5
.L11:
	ldr	r0, .L13+36
	bl	warn
	mov	r5, #1
	b	.L5
.L14:
	.align	2
.L13:
	.word	XPT_GDEV_TYPE
	.word	CAM_STATUS_MASK
	.word	CAM_REQ_CMP
	.word	arglist
	.word	CAM_ARG_VERBOSE
	.word	.LC0
	.word	stderr
	.word	CAM_EPF_ALL
	.word	CAM_ESF_ALL
	.word	.LC1
	.size	get_cgd, .-get_cgd
	.comm	stderr,4,4
	.comm	arglist,4,4
	.comm	XPT_GDEV_TYPE,4,4
	.comm	CAM_STATUS_MASK,4,4
	.comm	CAM_REQ_CMP,4,4
	.comm	CAM_ESF_ALL,4,4
	.comm	CAM_EPF_ALL,4,4
	.comm	CAM_ARG_VERBOSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
