	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_hdl_card_state
_il3945_hdl_card_state:                 ## @il3945_hdl_card_state
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_rxb_addr
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	%rax, -40(%rbp)
	movq	_HW_CARD_DISABLED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	%r14d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	movq	%rdx, %rsi
	cmoveq	%rax, %rsi
	movq	_SW_CARD_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_IL_WARN
	movq	_CSR_UCODE_DRV_GP1_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	__il_wr
	movq	_S_RFKILL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	testl	%r14d, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_3:
	movq	%rbx, %rdi
	callq	_il_scan_cancel
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	callq	_test_bit
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	cmpq	%rax, %r14
	jne	LBB0_4
## %bb.5:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	jmp	LBB0_6
LBB0_4:
	movq	16(%rbx), %rax
	movl	(%rax), %r14d
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_wiphy_rfkill_set_hw_state
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Card state received: HW:%s SW:%s\n"

	.comm	_HW_CARD_DISABLED,4,2           ## @HW_CARD_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"Kill"

L_.str.2:                               ## @.str.2
	.asciz	"On"

	.comm	_SW_CARD_DISABLED,4,2           ## @SW_CARD_DISABLED
	.comm	_CSR_UCODE_DRV_GP1_SET,4,2      ## @CSR_UCODE_DRV_GP1_SET
	.comm	_CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED,4,2 ## @CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED
	.comm	_S_RFKILL,4,2                   ## @S_RFKILL
	.no_dead_strip	_il3945_hdl_card_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_hdl_card_state
_il3945_hdl_card_state:                 ; @il3945_hdl_card_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	mov	x0, x1
	bl	_rxb_addr
	ldr	w0, [x0]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	x8, [x19]
	str	x8, [sp, #8]
Lloh0:
	adrp	x21, _HW_CARD_DISABLED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HW_CARD_DISABLED@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	adrp	x10, l_.str.2@PAGE
Lloh5:
	add	x10, x10, l_.str.2@PAGEOFF
	tst	w8, w0
	csel	x1, x10, x9, eq
Lloh6:
	adrp	x8, _SW_CARD_DISABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SW_CARD_DISABLED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	csel	x2, x10, x9, eq
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_WARN
Lloh11:
	adrp	x8, _CSR_UCODE_DRV_GP1_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1_SET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	__il_wr
	ldr	w8, [x21]
Lloh17:
	adrp	x21, _S_RFKILL@GOTPAGE
Lloh18:
	ldr	x21, [x21, _S_RFKILL@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	bl	_set_bit
	b	LBB0_3
LBB0_2:
	bl	_clear_bit
LBB0_3:
	mov	x0, x19
	bl	_il_scan_cancel
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_test_bit
	mov	x20, x0
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_bit
	cmp	x20, x0
	b.ne	LBB0_5
; %bb.4:
	add	x0, x19, #8
	bl	_wake_up
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_bit
	mov	x1, x0
	mov	x0, x20
	bl	_wiphy_rfkill_set_hw_state
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Card state received: HW:%s SW:%s\n"

	.comm	_HW_CARD_DISABLED,4,2           ; @HW_CARD_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"Kill"

l_.str.2:                               ; @.str.2
	.asciz	"On"

	.comm	_SW_CARD_DISABLED,4,2           ; @SW_CARD_DISABLED
	.comm	_CSR_UCODE_DRV_GP1_SET,4,2      ; @CSR_UCODE_DRV_GP1_SET
	.comm	_CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED,4,2 ; @CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED
	.comm	_S_RFKILL,4,2                   ; @S_RFKILL
	.no_dead_strip	_il3945_hdl_card_state
.subsections_via_symbols
