	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmci_queue_request
_atmci_queue_request:                   ## @atmci_queue_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rsi), %rdi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_vdbg
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	%r12, 8(%r14)
	movq	(%rbx), %rax
	movq	_STATE_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_STATE_SENDING_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_atmci_start_request
	jmp	LBB0_3
LBB0_2:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	addq	$12, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
LBB0_3:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue request: state=%d\n"

	.comm	_STATE_IDLE,8,3                 ## @STATE_IDLE
	.comm	_STATE_SENDING_CMD,8,3          ## @STATE_SENDING_CMD
L_.str.1:                               ## @.str.1
	.asciz	"queue request\n"

	.no_dead_strip	_atmci_queue_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmci_queue_request
_atmci_queue_request:                   ; @atmci_queue_request
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x1, #16]
	ldr	x2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_vdbg
	add	x20, x21, #8
	mov	x0, x20
	bl	_spin_lock_bh
	str	x22, [x19, #8]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _STATE_IDLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STATE_IDLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _STATE_SENDING_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATE_SENDING_CMD@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x21]
	mov	x0, x21
	mov	x1, x19
	bl	_atmci_start_request
	b	LBB0_3
LBB0_2:
	ldr	x0, [x21, #16]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	add	x1, x21, #12
	mov	x0, x19
	bl	_list_add_tail
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue request: state=%d\n"

	.comm	_STATE_IDLE,8,3                 ; @STATE_IDLE
	.comm	_STATE_SENDING_CMD,8,3          ; @STATE_SENDING_CMD
l_.str.1:                               ; @.str.1
	.asciz	"queue request\n"

	.no_dead_strip	_atmci_queue_request
.subsections_via_symbols
