	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_phy_write                  ## -- Begin function b43_phy_write
	.p2align	4, 0x90
_b43_phy_write:                         ## @b43_phy_write
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_assert_mac_suspended
	movl	16(%rbx), %edi
	callq	_b43_bus_host_is_pci
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	_B43_MAX_WRITES_IN_ROW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.2:
	movq	_B43_MMIO_PHY_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_read16
	movq	$1, (%rbx)
LBB0_3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	movq	_B43_MMIO_PHY_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_b43_write16f
	movq	_B43_MMIO_PHY_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_write16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_MAX_WRITES_IN_ROW,8,3      ## @B43_MAX_WRITES_IN_ROW
	.comm	_B43_MMIO_PHY_VER,4,2           ## @B43_MMIO_PHY_VER
	.comm	_B43_MMIO_PHY_CONTROL,4,2       ## @B43_MMIO_PHY_CONTROL
	.comm	_B43_MMIO_PHY_DATA,4,2          ## @B43_MMIO_PHY_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_phy_write                  ; -- Begin function b43_phy_write
	.p2align	2
_b43_phy_write:                         ; @b43_phy_write
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_assert_mac_suspended
	ldr	w0, [x20, #16]
	bl	_b43_bus_host_is_pci
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
Lloh0:
	adrp	x9, _B43_MAX_WRITES_IN_ROW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43_MAX_WRITES_IN_ROW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _B43_MMIO_PHY_VER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_MMIO_PHY_VER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_b43_read16
	mov	w8, #1
	str	x8, [x20]
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x3, [x8]
	cbz	x3, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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
	br	x3
LBB0_5:
Lloh6:
	adrp	x8, _B43_MMIO_PHY_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_MMIO_PHY_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_b43_write16f
Lloh9:
	adrp	x8, _B43_MMIO_PHY_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_MMIO_PHY_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	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
	b	_b43_write16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_MAX_WRITES_IN_ROW,8,3      ; @B43_MAX_WRITES_IN_ROW
	.comm	_B43_MMIO_PHY_VER,4,2           ; @B43_MMIO_PHY_VER
	.comm	_B43_MMIO_PHY_CONTROL,4,2       ; @B43_MMIO_PHY_CONTROL
	.comm	_B43_MMIO_PHY_DATA,4,2          ; @B43_MMIO_PHY_DATA
.subsections_via_symbols
