	.file	"extr_scsi_cd.c_cdsysctlinit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CAM CD unit %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"device_index"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"cdsysctlinit: unable to allocate sysctl tree\n"
	.section	.rodata.str1.1
.LC4:
	.string	"minimum_cmd_size"
.LC5:
	.string	"Minimum CDB size"
.LC6:
	.string	"I"
	.text
	.p2align 4
	.type	cdsysctlinit, @function
cdsysctlinit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	cam_periph_acquire@PLT
	test	rax, rax
	je	.L8
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	r14, 32[rsp]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rbx, QWORD PTR 8[rbp]
	lea	rdx, .LC0[rip]
	mov	esi, 32
	mov	rdi, r14
	lea	r13, 16[rsp]
	call	snprintf@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	esi, 16
	mov	rdi, r13
	lea	rdx, .LC1[rip]
	lea	r12, 16[rbx]
	call	snprintf@PLT
	mov	rdi, r12
	call	sysctl_ctx_init@PLT
	mov	eax, DWORD PTR CD_FLAG_SCTX_INIT[rip]
	or	DWORD PTR 20[rbx], eax
	mov	r8d, DWORD PTR CTLFLAG_RD[rip]
	mov	edi, DWORD PTR _kern_cam_cd[rip]
	mov	r15d, DWORD PTR OID_AUTO[rip]
	mov	DWORD PTR 12[rsp], r8d
	call	SYSCTL_STATIC_CHILDREN@PLT
	mov	edx, r15d
	mov	rdi, r12
	xor	r9d, r9d
	mov	esi, eax
	lea	rax, .LC2[rip]
	mov	rcx, r13
	push	rax
	.cfi_def_cfa_offset 152
	push	r14
	.cfi_def_cfa_offset 160
	mov	r8d, DWORD PTR 28[rsp]
	call	SYSCTL_ADD_NODE_WITH_LABEL@PLT
	mov	rdi, rax
	mov	QWORD PTR 8[rbx], rax
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
	test	rdi, rdi
	je	.L10
	mov	r15d, DWORD PTR cdcmdsizesysctl[rip]
	mov	r14d, DWORD PTR OID_AUTO[rip]
	mov	r13d, DWORD PTR CTLTYPE_INT[rip]
	or	r13d, DWORD PTR CTLFLAG_RW[rip]
	call	SYSCTL_CHILDREN@PLT
	mov	rdi, r12
	mov	r9, rbx
	mov	r8d, r13d
	mov	esi, eax
	lea	rax, .LC5[rip]
	lea	rcx, .LC4[rip]
	mov	edx, r14d
	push	rax
	.cfi_def_cfa_offset 152
	lea	rax, .LC6[rip]
	push	rax
	.cfi_def_cfa_offset 160
	push	r15
	.cfi_def_cfa_offset 168
	push	0
	.cfi_def_cfa_offset 176
	call	SYSCTL_ADD_PROC@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 144
	mov	rdi, rbp
	call	cam_periph_release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC3[rip]
	call	printf@PLT
	mov	rdi, rbp
	call	cam_periph_release@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cdsysctlinit, .-cdsysctlinit
	.comm	cdcmdsizesysctl,4,4
	.comm	_kern_cam_cd,4,4
	.comm	OID_AUTO,4,4
	.comm	CTLTYPE_INT,4,4
	.comm	CTLFLAG_RW,4,4
	.comm	CTLFLAG_RD,4,4
	.comm	CD_FLAG_SCTX_INIT,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_scsi_cd.c_cdsysctlinit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CAM CD unit %d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"device_index\000"
	.align	2
.LC3:
	.ascii	"cdsysctlinit: unable to allocate sysctl tree\012\000"
	.align	2
.LC4:
	.ascii	"minimum_cmd_size\000"
	.align	2
.LC5:
	.ascii	"Minimum CDB size\000"
	.align	2
.LC6:
	.ascii	"I\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdsysctlinit, %function
cdsysctlinit:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L11
	sub	sp, sp, #84
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	mov	r4, r0
	bl	cam_periph_acquire
	subs	r5, r0, #0
	beq	.L8
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	ldr	r6, [r4, #4]
	add	r9, sp, #44
	mov	r1, #32
	ldr	r3, [r4]
	ldr	r2, .L11+4
	mov	r0, r9
	bl	snprintf
	add	r7, r6, #8
	mov	r1, #16
	ldr	r3, [r4]
	ldr	r2, .L11+8
	add	r0, sp, #28
	bl	snprintf
	mov	r0, r7
	bl	sysctl_ctx_init
	ldr	r2, .L11+12
	ldr	r3, [r6, #12]
	ldr	r1, [r2]
	ldr	r2, .L11+16
	orr	r3, r3, r1
	ldr	r0, [r2]
	str	r3, [r6, #12]
	bl	SYSCTL_STATIC_CHILDREN
	ldr	r3, .L11+20
	ldr	ip, .L11+24
	ldr	r2, [r3]
	ldr	r8, .L11+28
	mov	r1, r0
	str	r2, [sp]
	mov	r0, r7
	ldr	r2, [r8]
	str	r9, [sp, #8]
	add	r3, sp, #28
	str	r5, [sp, #4]
	str	ip, [sp, #12]
	bl	SYSCTL_ADD_NODE_WITH_LABEL
	cmp	r0, #0
	str	r0, [r6, #4]
	beq	.L10
	bl	SYSCTL_CHILDREN
	ldr	r2, .L11+32
	ldr	r3, .L11+36
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r0, [r2]
	ldr	r2, .L11+40
	orr	r3, r3, r0
	ldr	lr, [r2]
	ldr	ip, .L11+44
	str	r3, [sp]
	ldr	r3, .L11+48
	mov	r0, r7
	str	r3, [sp, #16]
	ldr	r2, [r8]
	ldr	r3, .L11+52
	str	r5, [sp, #8]
	str	r6, [sp, #4]
	str	lr, [sp, #12]
	str	ip, [sp, #20]
	bl	SYSCTL_ADD_PROC
	mov	r0, r4
	bl	cam_periph_release
	b	.L1
.L10:
	ldr	r0, .L11+56
	bl	printf
	mov	r0, r4
	bl	cam_periph_release
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	CD_FLAG_SCTX_INIT
	.word	_kern_cam_cd
	.word	CTLFLAG_RD
	.word	.LC2
	.word	OID_AUTO
	.word	CTLFLAG_RW
	.word	CTLTYPE_INT
	.word	cdcmdsizesysctl
	.word	.LC5
	.word	.LC6
	.word	.LC4
	.word	.LC3
	.size	cdsysctlinit, .-cdsysctlinit
	.comm	cdcmdsizesysctl,4,4
	.comm	_kern_cam_cd,4,4
	.comm	OID_AUTO,4,4
	.comm	CTLTYPE_INT,4,4
	.comm	CTLFLAG_RW,4,4
	.comm	CTLFLAG_RD,4,4
	.comm	CD_FLAG_SCTX_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
