	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm8706_init_user_dev3
_bcm8706_init_user_dev3:                ## @bcm8706_init_user_dev3
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movq	_BCM8704_USER_DEV3_ADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_BCM8704_USER_OPT_DIGITAL_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	callq	_mdio_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_USER_ODIG_CTRL_GPIOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_USER_ODIG_CTRL_GPIOS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$3, %r8d
	shll	%cl, %r8d
	orl	%eax, %r8d
	movq	_USER_ODIG_CTRL_RESV2@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	callq	_mdio_write
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_mdelay
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM8704_USER_DEV3_ADDR,4,2     ## @BCM8704_USER_DEV3_ADDR
	.comm	_BCM8704_USER_OPT_DIGITAL_CTRL,4,2 ## @BCM8704_USER_OPT_DIGITAL_CTRL
	.comm	_USER_ODIG_CTRL_GPIOS,4,2       ## @USER_ODIG_CTRL_GPIOS
	.comm	_USER_ODIG_CTRL_GPIOS_SHIFT,4,2 ## @USER_ODIG_CTRL_GPIOS_SHIFT
	.comm	_USER_ODIG_CTRL_RESV2,4,2       ## @USER_ODIG_CTRL_RESV2
	.no_dead_strip	_bcm8706_init_user_dev3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm8706_init_user_dev3
_bcm8706_init_user_dev3:                ; @bcm8706_init_user_dev3
	.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	w1, [x0]
Lloh0:
	adrp	x20, _BCM8704_USER_DEV3_ADDR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BCM8704_USER_DEV3_ADDR@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh2:
	adrp	x21, _BCM8704_USER_OPT_DIGITAL_CTRL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BCM8704_USER_OPT_DIGITAL_CTRL@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_mdio_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _USER_ODIG_CTRL_GPIOS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USER_ODIG_CTRL_GPIOS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _USER_ODIG_CTRL_GPIOS_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USER_ODIG_CTRL_GPIOS_SHIFT@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh9:
	ldr	w9, [x9]
	mov	w10, #3
	lsl	w9, w10, w9
Lloh10:
	adrp	x10, _USER_ODIG_CTRL_RESV2@GOTPAGE
Lloh11:
	ldr	x10, [x10, _USER_ODIG_CTRL_RESV2@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh12:
	ldr	w9, [x10]
	orr	w4, w8, w9
	ldr	w1, [x19]
	ldr	w2, [x20]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_mdio_write
	cbnz	w0, LBB0_3
; %bb.2:
	mov	w0, #1000
	bl	_mdelay
	mov	w0, #0
LBB0_3:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM8704_USER_DEV3_ADDR,4,2     ; @BCM8704_USER_DEV3_ADDR
	.comm	_BCM8704_USER_OPT_DIGITAL_CTRL,4,2 ; @BCM8704_USER_OPT_DIGITAL_CTRL
	.comm	_USER_ODIG_CTRL_GPIOS,4,2       ; @USER_ODIG_CTRL_GPIOS
	.comm	_USER_ODIG_CTRL_GPIOS_SHIFT,4,2 ; @USER_ODIG_CTRL_GPIOS_SHIFT
	.comm	_USER_ODIG_CTRL_RESV2,4,2       ; @USER_ODIG_CTRL_RESV2
	.no_dead_strip	_bcm8706_init_user_dev3
.subsections_via_symbols
