	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function b44_chip_reset
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_b44_chip_reset:                        ## @b44_chip_reset
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	40(%rdi), %r14
	movq	%r14, %rdi
	callq	_ssb_device_is_enabled
	movl	%eax, %ebx
	movq	40(%r12), %rdi
	xorl	%esi, %esi
	callq	_ssb_device_enable
	movq	(%r14), %rdi
	addq	$4, %rdi
	movq	%r14, %rsi
	callq	_ssb_pcicore_dev_irqvecs_enable
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	_B44_RCV_LAZY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_bw32
	movq	_B44_ENET_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_ENET_CTRL_DISABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_bw32
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$200, %ecx
	movl	$1, %r8d
	callq	_b44_wait_bit
	movq	_B44_DMATX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_bw32
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	movq	_B44_DMARX_STAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_br32
	movq	_DMARX_STAT_EMASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	movq	_DMARX_STAT_SIDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$100, %ecx
	xorl	%r8d, %r8d
	callq	_b44_wait_bit
LBB0_3:
	movq	_B44_DMARX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_bw32
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
LBB0_4:
	movq	%r12, %rdi
	callq	_b44_clear_stats
	movq	_B44_CHIP_RESET_PARTIAL@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_17
## %bb.5:
	movq	(%r14), %rdi
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.6:
	cmpl	$131, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.8:
	movq	_B44_MDIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MDIO_CTRL_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_ssb_clockspeed
	movq	_B44_MDC_RATIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_DIV_ROUND_CLOSEST
	movq	_MDIO_CTRL_MAXF_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	jmp	LBB0_11
LBB0_9:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_12
LBB0_10:
	movq	_B44_MDIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_CTRL_PREAMBLE@GOTPCREL(%rip), %rax
	movq	_MDIO_CTRL_MAXF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	$13, %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
LBB0_11:
	callq	_bw32
LBB0_12:
	movq	_B44_MDIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_br32
	movq	_B44_DEVCTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_br32
	movq	_DEVCTRL_IPP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.13:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_br32
	movq	_DEVCTRL_EPR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_15
## %bb.14:
	movl	(%rbx), %esi
	notl	%ecx
	andl	%ecx, %eax
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_bw32
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_br32
	movl	$100, %edi
	callq	_udelay
LBB0_15:
	movq	_B44_FLAG_INTERNAL_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_17
LBB0_16:
	movq	_B44_ENET_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ENET_CTRL_EPSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bw32
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_br32
	movq	_B44_FLAG_INTERNAL_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_RCV_LAZY,4,2               ## @B44_RCV_LAZY
	.comm	_B44_ENET_CTRL,4,2              ## @B44_ENET_CTRL
	.comm	_ENET_CTRL_DISABLE,4,2          ## @ENET_CTRL_DISABLE
	.comm	_B44_DMATX_CTRL,4,2             ## @B44_DMATX_CTRL
	.comm	_B44_DMARX_STAT,4,2             ## @B44_DMARX_STAT
	.comm	_DMARX_STAT_EMASK,4,2           ## @DMARX_STAT_EMASK
	.comm	_DMARX_STAT_SIDLE,4,2           ## @DMARX_STAT_SIDLE
	.comm	_B44_DMARX_CTRL,4,2             ## @B44_DMARX_CTRL
	.comm	_B44_CHIP_RESET_PARTIAL,4,2     ## @B44_CHIP_RESET_PARTIAL
	.comm	_B44_MDIO_CTRL,4,2              ## @B44_MDIO_CTRL
	.comm	_MDIO_CTRL_PREAMBLE,4,2         ## @MDIO_CTRL_PREAMBLE
	.comm	_B44_MDC_RATIO,4,2              ## @B44_MDC_RATIO
	.comm	_MDIO_CTRL_MAXF_MASK,4,2        ## @MDIO_CTRL_MAXF_MASK
	.comm	_B44_DEVCTRL,4,2                ## @B44_DEVCTRL
	.comm	_DEVCTRL_IPP,4,2                ## @DEVCTRL_IPP
	.comm	_ENET_CTRL_EPSEL,4,2            ## @ENET_CTRL_EPSEL
	.comm	_B44_FLAG_INTERNAL_PHY,4,2      ## @B44_FLAG_INTERNAL_PHY
	.comm	_DEVCTRL_EPR,4,2                ## @DEVCTRL_EPR
	.no_dead_strip	_b44_chip_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_chip_reset
_b44_chip_reset:                        ; @b44_chip_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #40]
	mov	x0, x20
	bl	_ssb_device_is_enabled
	mov	x22, x0
	ldr	x0, [x19, #40]
	mov	w1, #0
	bl	_ssb_device_enable
	ldr	x8, [x20]
	add	x0, x8, #4
	mov	x1, x20
	bl	_ssb_pcicore_dev_irqvecs_enable
	cbz	w22, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _B44_RCV_LAZY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B44_RCV_LAZY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bw32
Lloh3:
	adrp	x22, _B44_ENET_CTRL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _B44_ENET_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _ENET_CTRL_DISABLE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ENET_CTRL_DISABLE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_bw32
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w3, #200
	mov	w4, #1
	bl	_b44_wait_bit
Lloh7:
	adrp	x8, _B44_DMATX_CTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _B44_DMATX_CTRL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bw32
	stp	xzr, xzr, [x19, #24]
Lloh10:
	adrp	x22, _B44_DMARX_STAT@GOTPAGE
Lloh11:
	ldr	x22, [x22, _B44_DMARX_STAT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_br32
Lloh12:
	adrp	x8, _DMARX_STAT_EMASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMARX_STAT_EMASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x22]
Lloh15:
	adrp	x8, _DMARX_STAT_SIDLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMARX_STAT_SIDLE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #100
	mov	w4, #0
	bl	_b44_wait_bit
LBB0_3:
Lloh18:
	adrp	x8, _B44_DMARX_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _B44_DMARX_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bw32
	stp	xzr, xzr, [x19, #8]
LBB0_4:
	mov	x0, x19
	bl	_b44_clear_stats
Lloh21:
	adrp	x8, _B44_CHIP_RESET_PARTIAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _B44_CHIP_RESET_PARTIAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_18
; %bb.5:
	ldr	x0, [x20]
	ldr	w8, [x0]
	sub	w9, w8, #129
Lloh24:
	adrp	x21, _B44_MDIO_CTRL@GOTPAGE
Lloh25:
	ldr	x21, [x21, _B44_MDIO_CTRL@GOTPAGEOFF]
	cmp	w9, #2
	b.lo	LBB0_9
; %bb.6:
	cmp	w8, #131
	b.eq	LBB0_10
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.8:
	ldr	w20, [x21]
Lloh26:
	adrp	x8, _MDIO_CTRL_PREAMBLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MDIO_CTRL_PREAMBLE@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
	bl	_ssb_clockspeed
Lloh29:
	adrp	x8, _B44_MDC_RATIO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _B44_MDC_RATIO@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_DIV_ROUND_CLOSEST
Lloh32:
	adrp	x8, _MDIO_CTRL_MAXF_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MDIO_CTRL_MAXF_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w2, w8, w22
	mov	x0, x19
	mov	x1, x20
	b	LBB0_11
LBB0_9:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_12
LBB0_10:
	ldr	w1, [x21]
Lloh35:
	adrp	x8, _MDIO_CTRL_PREAMBLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MDIO_CTRL_PREAMBLE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _MDIO_CTRL_MAXF_MASK@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MDIO_CTRL_MAXF_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	mov	w10, #13
	and	w9, w9, w10
	orr	w2, w9, w8
	mov	x0, x19
LBB0_11:
	bl	_bw32
LBB0_12:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_br32
Lloh41:
	adrp	x20, _B44_DEVCTRL@GOTPAGE
Lloh42:
	ldr	x20, [x20, _B44_DEVCTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_br32
Lloh43:
	adrp	x8, _DEVCTRL_IPP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DEVCTRL_IPP@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.13:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_br32
Lloh46:
	adrp	x8, _DEVCTRL_EPR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _DEVCTRL_EPR@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.14:
	ldr	w1, [x20]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_bw32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_br32
	mov	w0, #100
	bl	_udelay
LBB0_15:
Lloh49:
	adrp	x8, _B44_FLAG_INTERNAL_PHY@GOTPAGE
Lloh50:
	ldr	x8, [x8, _B44_FLAG_INTERNAL_PHY@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_17
LBB0_16:
Lloh52:
	adrp	x20, _B44_ENET_CTRL@GOTPAGE
Lloh53:
	ldr	x20, [x20, _B44_ENET_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh54:
	adrp	x8, _ENET_CTRL_EPSEL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ENET_CTRL_EPSEL@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bw32
	ldr	w1, [x20]
	mov	x0, x19
	bl	_br32
Lloh57:
	adrp	x8, _B44_FLAG_INTERNAL_PHY@GOTPAGE
Lloh58:
	ldr	x8, [x8, _B44_FLAG_INTERNAL_PHY@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_17:
	str	w8, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_RCV_LAZY,4,2               ; @B44_RCV_LAZY
	.comm	_B44_ENET_CTRL,4,2              ; @B44_ENET_CTRL
	.comm	_ENET_CTRL_DISABLE,4,2          ; @ENET_CTRL_DISABLE
	.comm	_B44_DMATX_CTRL,4,2             ; @B44_DMATX_CTRL
	.comm	_B44_DMARX_STAT,4,2             ; @B44_DMARX_STAT
	.comm	_DMARX_STAT_EMASK,4,2           ; @DMARX_STAT_EMASK
	.comm	_DMARX_STAT_SIDLE,4,2           ; @DMARX_STAT_SIDLE
	.comm	_B44_DMARX_CTRL,4,2             ; @B44_DMARX_CTRL
	.comm	_B44_CHIP_RESET_PARTIAL,4,2     ; @B44_CHIP_RESET_PARTIAL
	.comm	_B44_MDIO_CTRL,4,2              ; @B44_MDIO_CTRL
	.comm	_MDIO_CTRL_PREAMBLE,4,2         ; @MDIO_CTRL_PREAMBLE
	.comm	_B44_MDC_RATIO,4,2              ; @B44_MDC_RATIO
	.comm	_MDIO_CTRL_MAXF_MASK,4,2        ; @MDIO_CTRL_MAXF_MASK
	.comm	_B44_DEVCTRL,4,2                ; @B44_DEVCTRL
	.comm	_DEVCTRL_IPP,4,2                ; @DEVCTRL_IPP
	.comm	_ENET_CTRL_EPSEL,4,2            ; @ENET_CTRL_EPSEL
	.comm	_B44_FLAG_INTERNAL_PHY,4,2      ; @B44_FLAG_INTERNAL_PHY
	.comm	_DEVCTRL_EPR,4,2                ; @DEVCTRL_EPR
	.no_dead_strip	_b44_chip_reset
.subsections_via_symbols
