	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cqhci_is_idle
_cqhci_is_idle:                         ## @cqhci_is_idle
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 16(%rbx)
	sete	%al
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	xorl	%esi, %esi
	cmpq	$0, 8(%rbx)
	setne	%cl
	cmovel	%esi, %edx
	orb	%al, %cl
	movzbl	%cl, %r12d
	movl	%edx, (%r14)
	movl	%r12d, %eax
	xorb	$1, %al
	movzbl	%al, %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_cqhci_is_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cqhci_is_idle
_cqhci_is_idle:                         ; @cqhci_is_idle
	.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	x19, x1
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #16]
	cmp	w8, #0
	cset	w8, eq
	ldr	x9, [x20, #8]
	cmp	x9, #0
	cset	w9, ne
Lloh0:
	adrp	x10, _EBUSY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EBUSY@GOTPAGEOFF]
	orr	w22, w8, w9
Lloh2:
	ldr	w8, [x10]
	csneg	w8, wzr, w8, eq
	str	w8, [x19]
	eor	w8, w22, #0x1
	str	w8, [x20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_cqhci_is_idle
.subsections_via_symbols
