	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_wireless_core_reset        ## -- Begin function b43_wireless_core_reset
	.p2align	4, 0x90
_b43_wireless_core_reset:               ## @b43_wireless_core_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rax)
LBB0_2:
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_b43_read32
	movq	_B43_MACCTL_GMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	testl	%r14d, %r14d
	cmovel	%ecx, %edx
	movq	_B43_MACCTL_IHR_ENABLED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_write32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_GMODE,4,2           ## @B43_MACCTL_GMODE
	.comm	_B43_MACCTL_IHR_ENABLED,4,2     ## @B43_MACCTL_IHR_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_wireless_core_reset        ; -- Begin function b43_wireless_core_reset
	.p2align	2
_b43_wireless_core_reset:               ; @b43_wireless_core_reset
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_2:
Lloh0:
	adrp	x21, _B43_MMIO_MACCTL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _B43_MMIO_MACCTL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_read32
Lloh2:
	adrp	x8, _B43_MACCTL_GMODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43_MACCTL_GMODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w9, w0, w8
	orr	w8, w8, w0
	cmp	w20, #0
	csel	w8, w9, w8, eq
Lloh5:
	adrp	x9, _B43_MACCTL_IHR_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _B43_MACCTL_IHR_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, 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_write32
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_GMODE,4,2           ; @B43_MACCTL_GMODE
	.comm	_B43_MACCTL_IHR_ENABLED,4,2     ; @B43_MACCTL_IHR_ENABLED
.subsections_via_symbols
