	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_mdio_phy_init
_bcma_mdio_phy_init:                    ## @bcma_mdio_phy_init
	.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, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	8(%r15), %rax
	movq	_BCMA_CHIP_ID_BCM5356@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$31, %edx
	movl	$139, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$21, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$31, %edx
	movl	$15, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$18, %edx
	movl	$10922, %ecx                    ## imm = 0x2AAA
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$31, %edx
	movl	$11, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$31, %edx
	movl	$139, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$21, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$31, %edx
	movl	$15, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$18, %edx
	movl	$10922, %ecx                    ## imm = 0x2AAA
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$31, %edx
	movl	$11, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$31, %edx
	movl	$139, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$21, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$31, %edx
	movl	$15, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$18, %edx
	movl	$10922, %ecx                    ## imm = 0x2AAA
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$31, %edx
	movl	$11, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$31, %edx
	movl	$139, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$21, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$31, %edx
	movl	$15, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$18, %edx
	movl	$10922, %ecx                    ## imm = 0x2AAA
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$31, %edx
	movl	$11, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$31, %edx
	movl	$139, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$21, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$31, %edx
	movl	$15, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$18, %edx
	movl	$10922, %ecx                    ## imm = 0x2AAA
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$31, %edx
	movl	$11, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcma_mdio_phy_write            ## TAILCALL
LBB0_1:
	movq	_BCMA_CHIP_ID_BCM5357@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	cmpl	$10, 16(%r15)
	jne	LBB0_7
LBB0_3:
	movq	_BCMA_CHIP_ID_BCM4749@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	cmpl	$10, 16(%r15)
	jne	LBB0_7
LBB0_5:
	movq	_BCMA_CHIP_ID_BCM53572@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	cmpl	$9, 16(%r15)
	jne	LBB0_7
LBB0_9:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_init_hw                    ## TAILCALL
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$1073741823, %edx               ## imm = 0x3FFFFFFF
	xorl	%ecx, %ecx
	callq	_bcma_chipco_chipctl_maskset
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$2147483647, %edx               ## imm = 0x7FFFFFFF
	xorl	%ecx, %ecx
	callq	_bcma_chipco_chipctl_maskset
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$31, %edx
	movl	$15, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$22, %edx
	movl	$21124, %ecx                    ## imm = 0x5284
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$31, %edx
	movl	$11, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$23, %edx
	movl	$16, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$31, %edx
	movl	$15, %ecx
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$22, %edx
	movl	$21142, %ecx                    ## imm = 0x5296
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$23, %edx
	movl	$4211, %ecx                     ## imm = 0x1073
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$23, %edx
	movl	$36979, %ecx                    ## imm = 0x9073
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$22, %edx
	movl	$21174, %ecx                    ## imm = 0x52B6
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$23, %edx
	movl	$37491, %ecx                    ## imm = 0x9273
	callq	_bcma_mdio_phy_write
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$31, %edx
	movl	$11, %ecx
	callq	_bcma_mdio_phy_write
	incl	%ebx
	cmpl	$5, %ebx
	jne	LBB0_8
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CHIP_ID_BCM5356,8,3       ## @BCMA_CHIP_ID_BCM5356
	.comm	_BCMA_CHIP_ID_BCM5357,8,3       ## @BCMA_CHIP_ID_BCM5357
	.comm	_BCMA_CHIP_ID_BCM4749,8,3       ## @BCMA_CHIP_ID_BCM4749
	.comm	_BCMA_CHIP_ID_BCM53572,8,3      ## @BCMA_CHIP_ID_BCM53572
	.no_dead_strip	_bcma_mdio_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_mdio_phy_init
_bcma_mdio_phy_init:                    ; @bcma_mdio_phy_init
	.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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _BCMA_CHIP_ID_BCM5356@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCMA_CHIP_ID_BCM5356@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #31
	mov	w3, #139
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #0
	mov	w2, #21
	mov	w3, #256
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #0
	mov	w2, #31
	mov	w3, #15
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #0
	mov	w2, #18
	mov	w3, #10922
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #0
	mov	w2, #31
	mov	w3, #11
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #1
	mov	w2, #31
	mov	w3, #139
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #1
	mov	w2, #21
	mov	w3, #256
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #1
	mov	w2, #31
	mov	w3, #15
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #1
	mov	w2, #18
	mov	w3, #10922
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #1
	mov	w2, #31
	mov	w3, #11
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #2
	mov	w2, #31
	mov	w3, #139
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #2
	mov	w2, #21
	mov	w3, #256
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #2
	mov	w2, #31
	mov	w3, #15
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #2
	mov	w2, #18
	mov	w3, #10922
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #2
	mov	w2, #31
	mov	w3, #11
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #3
	mov	w2, #31
	mov	w3, #139
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #3
	mov	w2, #21
	mov	w3, #256
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #3
	mov	w2, #31
	mov	w3, #15
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #3
	mov	w2, #18
	mov	w3, #10922
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #3
	mov	w2, #31
	mov	w3, #11
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #4
	mov	w2, #31
	mov	w3, #139
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #4
	mov	w2, #21
	mov	w3, #256
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #4
	mov	w2, #31
	mov	w3, #15
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #4
	mov	w2, #18
	mov	w3, #10922
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	w1, #4
	mov	w2, #31
	mov	w3, #11
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcma_mdio_phy_write
LBB0_2:
Lloh3:
	adrp	x9, _BCMA_CHIP_ID_BCM5357@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BCMA_CHIP_ID_BCM5357@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [x20, #16]
	cmp	w9, #10
	b.ne	LBB0_11
LBB0_4:
Lloh6:
	adrp	x9, _BCMA_CHIP_ID_BCM4749@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BCMA_CHIP_ID_BCM4749@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w9, [x20, #16]
	cmp	w9, #10
	b.ne	LBB0_11
LBB0_6:
Lloh9:
	adrp	x9, _BCMA_CHIP_ID_BCM53572@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BCMA_CHIP_ID_BCM53572@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20, #16]
	cmp	w8, #9
	b.ne	LBB0_11
LBB0_8:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.9:
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_init_hw
LBB0_11:
	mov	x0, x20
	mov	w1, #2
	mov	w2, #1073741823
	mov	w3, #0
	bl	_bcma_chipco_chipctl_maskset
	mov	x0, x20
	mov	w1, #4
	mov	w2, #2147483647
	mov	w3, #0
	bl	_bcma_chipco_chipctl_maskset
	mov	w20, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #31
	mov	w3, #15
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #22
	mov	w3, #21124
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #31
	mov	w3, #11
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #23
	mov	w3, #16
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #31
	mov	w3, #15
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #22
	mov	w3, #21142
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #23
	mov	w3, #4211
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #23
	mov	w3, #36979
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #22
	mov	w3, #21174
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #23
	mov	w3, #37491
	bl	_bcma_mdio_phy_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #31
	mov	w3, #11
	bl	_bcma_mdio_phy_write
	add	w20, w20, #1
	cmp	w20, #5
	b.ne	LBB0_12
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CHIP_ID_BCM5356,8,3       ; @BCMA_CHIP_ID_BCM5356
	.comm	_BCMA_CHIP_ID_BCM5357,8,3       ; @BCMA_CHIP_ID_BCM5357
	.comm	_BCMA_CHIP_ID_BCM4749,8,3       ; @BCMA_CHIP_ID_BCM4749
	.comm	_BCMA_CHIP_ID_BCM53572,8,3      ; @BCMA_CHIP_ID_BCM53572
	.no_dead_strip	_bcma_mdio_phy_init
.subsections_via_symbols
