	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_halt
_b44_halt:                              ## @b44_halt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_b44_disable_ints
	movq	%rbx, %rdi
	callq	_b44_phy_reset
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
	movq	_B44_MAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAC_CTRL_PHY_PDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bw32
	movq	_B44_FLAG_EXTERNAL_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_B44_CHIP_RESET_PARTIAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_B44_CHIP_RESET_FULL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_b44_chip_reset                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"powering down PHY\n"

	.comm	_B44_MAC_CTRL,4,2               ## @B44_MAC_CTRL
	.comm	_MAC_CTRL_PHY_PDOWN,4,2         ## @MAC_CTRL_PHY_PDOWN
	.comm	_B44_FLAG_EXTERNAL_PHY,4,2      ## @B44_FLAG_EXTERNAL_PHY
	.comm	_B44_CHIP_RESET_FULL,4,2        ## @B44_CHIP_RESET_FULL
	.comm	_B44_CHIP_RESET_PARTIAL,4,2     ## @B44_CHIP_RESET_PARTIAL
	.no_dead_strip	_b44_halt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_halt
_b44_halt:                              ; @b44_halt
	.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
	bl	_b44_disable_ints
	mov	x0, x19
	bl	_b44_phy_reset
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
Lloh2:
	adrp	x8, _B44_MAC_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B44_MAC_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _MAC_CTRL_PHY_PDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAC_CTRL_PHY_PDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bw32
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _B44_FLAG_EXTERNAL_PHY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _B44_FLAG_EXTERNAL_PHY@GOTPAGEOFF]
Lloh10:
	adrp	x10, _B44_CHIP_RESET_PARTIAL@GOTPAGE
Lloh11:
	ldr	x10, [x10, _B44_CHIP_RESET_PARTIAL@GOTPAGEOFF]
Lloh12:
	adrp	x11, _B44_CHIP_RESET_FULL@GOTPAGE
Lloh13:
	ldr	x11, [x11, _B44_CHIP_RESET_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b44_chip_reset
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh14
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"powering down PHY\n"

	.comm	_B44_MAC_CTRL,4,2               ; @B44_MAC_CTRL
	.comm	_MAC_CTRL_PHY_PDOWN,4,2         ; @MAC_CTRL_PHY_PDOWN
	.comm	_B44_FLAG_EXTERNAL_PHY,4,2      ; @B44_FLAG_EXTERNAL_PHY
	.comm	_B44_CHIP_RESET_FULL,4,2        ; @B44_CHIP_RESET_FULL
	.comm	_B44_CHIP_RESET_PARTIAL,4,2     ; @B44_CHIP_RESET_PARTIAL
	.no_dead_strip	_b44_halt
.subsections_via_symbols
