	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_qos_init
_b43_qos_init:                          ## @b43_qos_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_b43_qos_upload_all
	movq	%rbx, %rdi
	callq	_b43_hf_read
	movq	_B43_HF_EDCF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_b43_hf_write
	movq	_B43_MMIO_IFSCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43_read16
	movq	_B43_MMIO_IFSCTL_USE_EDCF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_b43_write16
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_b43_hf_read
	movq	_B43_HF_EDCF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	%rbx, %rdi
	callq	_b43_hf_write
	movq	_B43_MMIO_IFSCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43_read16
	movq	_B43_MMIO_IFSCTL_USE_EDCF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_b43_write16
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43dbg                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_HF_EDCF,4,2                ## @B43_HF_EDCF
	.comm	_B43_MMIO_IFSCTL,4,2            ## @B43_MMIO_IFSCTL
	.comm	_B43_MMIO_IFSCTL_USE_EDCF,4,2   ## @B43_MMIO_IFSCTL_USE_EDCF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QoS disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"QoS enabled\n"

	.no_dead_strip	_b43_qos_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_qos_init
_b43_qos_init:                          ; @b43_qos_init
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_b43_qos_upload_all
	mov	x0, x19
	bl	_b43_hf_read
Lloh0:
	adrp	x8, _B43_HF_EDCF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_HF_EDCF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	bl	_b43_hf_write
Lloh3:
	adrp	x8, _B43_MMIO_IFSCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_MMIO_IFSCTL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_b43_read16
Lloh6:
	adrp	x8, _B43_MMIO_IFSCTL_USE_EDCF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_MMIO_IFSCTL_USE_EDCF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_b43_write16
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_b43_hf_read
Lloh11:
	adrp	x8, _B43_HF_EDCF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43_HF_EDCF@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x19
	bl	_b43_hf_write
Lloh14:
	adrp	x8, _B43_MMIO_IFSCTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B43_MMIO_IFSCTL@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_b43_read16
Lloh17:
	adrp	x8, _B43_MMIO_IFSCTL_USE_EDCF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _B43_MMIO_IFSCTL_USE_EDCF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_b43_write16
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43dbg
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_HF_EDCF,4,2                ; @B43_HF_EDCF
	.comm	_B43_MMIO_IFSCTL,4,2            ; @B43_MMIO_IFSCTL
	.comm	_B43_MMIO_IFSCTL_USE_EDCF,4,2   ; @B43_MMIO_IFSCTL_USE_EDCF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QoS disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"QoS enabled\n"

	.no_dead_strip	_b43_qos_init
.subsections_via_symbols
