	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ResetBoard
_ResetBoard:                            ## @ResetBoard
	.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	%rdi, %r14
	movq	_BCMREG@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_inb
	movq	_BCMREG_RESET@GOTPCREL(%rip), %r12
	orb	(%r12), %al
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movzbl	%al, %ebx
	movl	%ebx, %edi
	callq	_outb
	movl	$10, %edi
	callq	_udelay
	movb	(%r12), %al
	notb	%al
	andb	%al, %bl
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movzbl	%bl, %ebx
	movl	%ebx, %edi
	callq	_outb
	movq	_BCMREG_RAMEN@GOTPCREL(%rip), %rax
	movq	_BCMREG_RAMWIN@GOTPCREL(%rip), %rcx
	orb	(%rax), %bl
	orb	(%rcx), %bl
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movzbl	%bl, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMREG,8,3                     ## @BCMREG
	.comm	_BCMREG_RESET,1,0               ## @BCMREG_RESET
	.comm	_BCMREG_RAMEN,1,0               ## @BCMREG_RAMEN
	.comm	_BCMREG_RAMWIN,1,0              ## @BCMREG_RAMWIN
	.no_dead_strip	_ResetBoard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ResetBoard
_ResetBoard:                            ; @ResetBoard
	.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, _BCMREG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BCMREG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inb
Lloh2:
	adrp	x21, _BCMREG_RESET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BCMREG_RESET@GOTPAGEOFF]
	ldrb	w8, [x21]
	orr	w22, w8, w0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	and	w0, w22, #0xff
	bl	_outb
	mov	w0, #10
	bl	_udelay
	ldrb	w8, [x21]
	bic	w21, w22, w8
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	and	w0, w21, #0xff
	bl	_outb
Lloh4:
	adrp	x8, _BCMREG_RAMEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BCMREG_RAMEN@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh6:
	adrp	x9, _BCMREG_RAMWIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BCMREG_RAMWIN@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w21
	orr	w8, w8, w9
	ldr	x9, [x19]
	ldr	x10, [x20]
	add	x1, x10, x9
	and	w0, w8, #0xff
	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	_outb
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMREG,8,3                     ; @BCMREG
	.comm	_BCMREG_RESET,1,0               ; @BCMREG_RESET
	.comm	_BCMREG_RAMEN,1,0               ; @BCMREG_RAMEN
	.comm	_BCMREG_RAMWIN,1,0              ; @BCMREG_RAMWIN
	.no_dead_strip	_ResetBoard
.subsections_via_symbols
