	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_mci_process_profile
_ath_mci_process_profile:               ## @ath_mci_process_profile
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ath_mci_find_profile
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_DEC_PROF
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_INC_PROF
LBB0_3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_memcpy
	cmpq	$0, 8(%rbx)
	jne	LBB0_8
	jmp	LBB0_7
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ath_mci_add_profile
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ath_mci_del_profile
LBB0_8:
	movq	%r14, %rdi
	callq	_ath_mci_set_concur_txprio
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ath_mci_process_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_mci_process_profile
_ath_mci_process_profile:               ; @ath_mci_process_profile
	.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	w0, [x0, #4]
	bl	_ath9k_hw_common
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ath_mci_find_profile
	mov	x22, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_DEC_PROF
	mov	x0, x19
	mov	x1, x20
	bl	_INC_PROF
LBB0_3:
	mov	x0, x22
	mov	x1, x20
	mov	w2, #10
	bl	_memcpy
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_ath_mci_add_profile
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_ath_mci_del_profile
LBB0_7:
	mov	x0, x19
	bl	_ath_mci_set_concur_txprio
	mov	w0, #1
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ath_mci_process_profile
.subsections_via_symbols
