	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_phy_init                   ## -- Begin function b43_phy_init
	.p2align	4, 0x90
_b43_phy_init:                          ## @b43_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	cmpq	$0, 24(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*16(%r12)
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b43_software_rfkill
	movq	%rbx, %rdi
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
	jmp	LBB0_7
LBB0_4:
	movl	$0, 8(%rbx)
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_b43_switch_channel
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_b43err
	movl	$1, 8(%rbx)
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	*%rcx
LBB0_7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_b43_software_rfkill
	movl	%r14d, %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY init failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"PHY init: Channel switch to default failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_phy_init                   ; -- Begin function b43_phy_init
	.p2align	2
_b43_phy_init:                          ; @b43_phy_init
	.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
	ldp	x21, x8, [x0, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_2:
	ldr	x8, [x21, #16]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	mov	x0, x19
	mov	w1, #0
	bl	_b43_software_rfkill
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
	b	LBB0_7
LBB0_4:
	str	wzr, [x19, #8]
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_b43_switch_channel
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_b43err
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_b43_software_rfkill
LBB0_8:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY init failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"PHY init: Channel switch to default failed\n"

.subsections_via_symbols
