	.file	"extr_b44.c_b44_halt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"powering down PHY\n"
	.text
	.p2align 4
	.type	b44_halt, @function
b44_halt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	b44_disable_ints@PLT
	mov	rdi, rbp
	call	b44_phy_reset@PLT
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC0[rip]
	call	netdev_info@PLT
	mov	edx, DWORD PTR MAC_CTRL_PHY_PDOWN[rip]
	mov	esi, DWORD PTR B44_MAC_CTRL[rip]
	mov	rdi, rbp
	call	bw32@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR B44_FLAG_EXTERNAL_PHY[rip], eax
	je	.L2
	mov	esi, DWORD PTR B44_CHIP_RESET_FULL[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	b44_chip_reset@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR B44_CHIP_RESET_PARTIAL[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	b44_chip_reset@PLT
	.cfi_endproc
.LFE0:
	.size	b44_halt, .-b44_halt
	.comm	MAC_CTRL_PHY_PDOWN,4,4
	.comm	B44_MAC_CTRL,4,4
	.comm	B44_FLAG_EXTERNAL_PHY,4,4
	.comm	B44_CHIP_RESET_PARTIAL,4,4
	.comm	B44_CHIP_RESET_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_b44.c_b44_halt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"powering down PHY\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b44_halt, %function
b44_halt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	b44_disable_ints
	mov	r0, r4
	bl	b44_phy_reset
	ldr	r1, .L5
	ldr	r0, [r4, #4]
	bl	netdev_info
	ldr	r3, .L5+4
	ldr	r2, .L5+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	bw32
	ldr	r3, .L5+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L2
	ldr	r3, .L5+16
	mov	r0, r4
	pop	{r4, lr}
	ldr	r1, [r3]
	b	b44_chip_reset
.L2:
	ldr	r3, .L5+20
	mov	r0, r4
	pop	{r4, lr}
	ldr	r1, [r3]
	b	b44_chip_reset
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	B44_MAC_CTRL
	.word	MAC_CTRL_PHY_PDOWN
	.word	B44_FLAG_EXTERNAL_PHY
	.word	B44_CHIP_RESET_FULL
	.word	B44_CHIP_RESET_PARTIAL
	.size	b44_halt, .-b44_halt
	.comm	MAC_CTRL_PHY_PDOWN,4,4
	.comm	B44_MAC_CTRL,4,4
	.comm	B44_FLAG_EXTERNAL_PHY,4,4
	.comm	B44_CHIP_RESET_PARTIAL,4,4
	.comm	B44_CHIP_RESET_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
