	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macio_adb_reset_bus
_macio_adb_reset_bus:                   ## @macio_adb_reset_bus
	.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	_macio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_adb@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	movq	%r14, %rdi
	callq	_in_8
	movq	_ADB_RST@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_out_8
	movl	$-1000000, %ebx                 ## imm = 0xFFF0BDC0
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	callq	_in_8
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	jne	LBB0_1
## %bb.4:
	movq	(%r15), %r14
	movq	%r14, %rdi
	callq	_in_8
	movl	(%r12), %esi
	notl	%esi
	andl	%eax, %esi
	movq	%r14, %rdi
	callq	_out_8
	movl	$-1, %ebx
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_macio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_macio_lock,4,2                 ## @macio_lock
	.comm	_adb,8,3                        ## @adb
	.comm	_ADB_RST,4,2                    ## @ADB_RST
	.no_dead_strip	_macio_adb_reset_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macio_adb_reset_bus
_macio_adb_reset_bus:                   ; @macio_adb_reset_bus
	.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
Lloh0:
	adrp	x0, _macio_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _macio_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x20, _adb@GOTPAGE
Lloh3:
	ldr	x20, [x20, _adb@GOTPAGEOFF]
	ldr	x19, [x20]
	mov	x0, x19
	bl	_in_8
Lloh4:
	adrp	x21, _ADB_RST@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ADB_RST@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w1, w8, w0
	mov	x0, x19
	bl	_out_8
	mov	w19, #48576
	movk	w19, #65520, lsl #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_in_8
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adds	w19, w19, #1
	b.lo	LBB0_1
; %bb.3:
	ldr	x19, [x20]
	mov	x0, x19
	bl	_in_8
	ldr	w8, [x21]
	bic	w1, w0, w8
	mov	x0, x19
	bl	_out_8
	mov	w19, #-1
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
Lloh6:
	adrp	x0, _macio_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _macio_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_macio_lock,4,2                 ; @macio_lock
	.comm	_adb,8,3                        ; @adb
	.comm	_ADB_RST,4,2                    ; @ADB_RST
	.no_dead_strip	_macio_adb_reset_bus
.subsections_via_symbols
