	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmux_index_wait_complete
_gmux_index_wait_complete:              ## @gmux_index_wait_complete
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GMUX_PORT_WRITE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_inb
	movl	$1, %r14d
	testb	$1, %al
	jne	LBB0_5
## %bb.1:
	movl	$-199, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_inb
	movl	%eax, %r13d
	movl	$100, %edi
	callq	_udelay
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ecx
	andl	$1, %ecx
	leal	1(%rbx), %eax
	testl	%ecx, %ecx
	je	LBB0_2
LBB0_4:
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	setne	%r14b
	testb	$1, %r13b
	je	LBB0_6
LBB0_5:
	movq	_GMUX_PORT_READ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_inb
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMUX_PORT_WRITE,8,3            ## @GMUX_PORT_WRITE
	.comm	_GMUX_PORT_READ,8,3             ## @GMUX_PORT_READ
	.no_dead_strip	_gmux_index_wait_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmux_index_wait_complete
_gmux_index_wait_complete:              ; @gmux_index_wait_complete
	.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, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _GMUX_PORT_WRITE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GMUX_PORT_WRITE@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inb
	tbnz	w0, #0, LBB0_5
; %bb.1:
	mov	w8, #-199
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inb
	mov	x21, x0
	mov	w0, #100
	bl	_udelay
	cbz	w22, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w22, #1
	tbz	w21, #0, LBB0_2
LBB0_4:
	cmp	w22, #0
	cset	w20, ne
	tbnz	w21, #0, LBB0_6
	b	LBB0_7
LBB0_5:
	mov	w20, #1
LBB0_6:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _GMUX_PORT_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GMUX_PORT_READ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GMUX_PORT_WRITE,8,3            ; @GMUX_PORT_WRITE
	.comm	_GMUX_PORT_READ,8,3             ; @GMUX_PORT_READ
	.no_dead_strip	_gmux_index_wait_complete
.subsections_via_symbols
