	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_atiixp_check_bus_busy
_snd_atiixp_check_bus_busy:             ## @snd_atiixp_check_bus_busy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_atiixp_read
	movq	_ATI_REG_CMD_MODEM_SEND1_EN@GOTPCREL(%rip), %rdx
	movq	_ATI_REG_CMD_MODEM_RECEIVE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	andl	%eax, %ecx
	movq	_ATI_REG_IER_MODEM_SET_BUS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovnel	%edx, %ecx
	movq	_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_atiixp_update                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD,4,2                        ## @CMD
	.comm	_ATI_REG_CMD_MODEM_SEND1_EN,4,2 ## @ATI_REG_CMD_MODEM_SEND1_EN
	.comm	_ATI_REG_CMD_MODEM_RECEIVE_EN,4,2 ## @ATI_REG_CMD_MODEM_RECEIVE_EN
	.comm	_ATI_REG_IER_MODEM_SET_BUS_BUSY,4,2 ## @ATI_REG_IER_MODEM_SET_BUS_BUSY
	.comm	_IER,4,2                        ## @IER
	.no_dead_strip	_snd_atiixp_check_bus_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_atiixp_check_bus_busy
_snd_atiixp_check_bus_busy:             ; @snd_atiixp_check_bus_busy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_atiixp_read
Lloh3:
	adrp	x8, _ATI_REG_CMD_MODEM_SEND1_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATI_REG_CMD_MODEM_SEND1_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ATI_REG_CMD_MODEM_RECEIVE_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATI_REG_CMD_MODEM_RECEIVE_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ATI_REG_IER_MODEM_SET_BUS_BUSY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATI_REG_IER_MODEM_SET_BUS_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
	tst	w8, w0
Lloh12:
	adrp	x8, _IER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IER@GOTPAGEOFF]
	csel	w3, wzr, w2, eq
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atiixp_update
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD,4,2                        ; @CMD
	.comm	_ATI_REG_CMD_MODEM_SEND1_EN,4,2 ; @ATI_REG_CMD_MODEM_SEND1_EN
	.comm	_ATI_REG_CMD_MODEM_RECEIVE_EN,4,2 ; @ATI_REG_CMD_MODEM_RECEIVE_EN
	.comm	_ATI_REG_IER_MODEM_SET_BUS_BUSY,4,2 ; @ATI_REG_IER_MODEM_SET_BUS_BUSY
	.comm	_IER,4,2                        ; @IER
	.no_dead_strip	_snd_atiixp_check_bus_busy
.subsections_via_symbols
