	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_set_current_imask
_ath5k_set_current_imask:               ## @ath5k_set_current_imask
	.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
	movq	_ATH_STAT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_AR5K_INT_RX_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	cmpq	$1, 16(%rbx)
	notl	%eax
	movl	$0, %ecx
	sbbl	%ecx, %ecx
	orl	%eax, %ecx
	andl	(%rbx), %ecx
	movq	_AR5K_INT_TX_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	cmpq	$1, 8(%rbx)
	sbbl	%esi, %esi
	orl	%eax, %esi
	andl	%ecx, %esi
	movq	%rbx, %rdi
	callq	_ath5k_hw_set_imr
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_STAT_RESET,4,2             ## @ATH_STAT_RESET
	.comm	_AR5K_INT_RX_ALL,4,2            ## @AR5K_INT_RX_ALL
	.comm	_AR5K_INT_TX_ALL,4,2            ## @AR5K_INT_TX_ALL
	.no_dead_strip	_ath5k_set_current_imask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_set_current_imask
_ath5k_set_current_imask:               ; @ath5k_set_current_imask
	.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
Lloh0:
	adrp	x8, _ATH_STAT_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_STAT_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _AR5K_INT_RX_ALL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR5K_INT_RX_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	x11, x10, [x19, #8]
	cmp	x10, #0
	mov	w10, #-1
	csinv	w9, w10, w9, eq
	and	w8, w9, w8
Lloh6:
	adrp	x9, _AR5K_INT_TX_ALL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AR5K_INT_TX_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x11, #0
	csinv	w9, w10, w9, eq
	and	w1, w8, w9
	mov	x0, x19
	bl	_ath5k_hw_set_imr
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_STAT_RESET,4,2             ; @ATH_STAT_RESET
	.comm	_AR5K_INT_RX_ALL,4,2            ; @AR5K_INT_RX_ALL
	.comm	_AR5K_INT_TX_ALL,4,2            ; @AR5K_INT_TX_ALL
	.no_dead_strip	_ath5k_set_current_imask
.subsections_via_symbols
