	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_rx_card_state_notif
_iwlagn_rx_card_state_notif:            ## @iwlagn_rx_card_state_notif
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_rxb_addr
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	_HW_CARD_DISABLED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	andl	%r13d, %ecx
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, %rdx
	cmoveq	%rsi, %rdx
	movq	_SW_CARD_DISABLED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	andl	%r13d, %edi
	cmoveq	%rsi, %rcx
	movq	%rax, -48(%rbp)
	movq	_CT_CARD_DISABLED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	%r13d, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_RF_KILL
	movl	(%rbx), %ecx
	orl	(%r15), %ecx
	movl	(%r12), %eax
	orl	%eax, %ecx
	testl	%r13d, %ecx
	je	LBB0_5
## %bb.1:
	movl	16(%r14), %edi
	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
	callq	_iwl_write32
	movl	16(%r14), %edi
	movq	_HBUS_TARG_MBX_C@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_iwl_write_direct32
	movq	_RXON_CARD_DISABLED@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	16(%r14), %edi
	movq	_CSR_UCODE_DRV_GP1_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_iwl_write32
	movl	16(%r14), %edi
	movl	(%rbx), %esi
	movl	(%r15), %edx
	callq	_iwl_write_direct32
LBB0_3:
	movl	(%r12), %eax
	testl	%r13d, %eax
	movq	_HW_CARD_DISABLED@GOTPCREL(%rip), %rbx
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_iwl_tt_enter_ct_kill
	movl	(%r12), %eax
LBB0_5:
	testl	%r13d, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_iwl_tt_exit_ct_kill
LBB0_7:
	movq	_STATUS_RF_KILL_HW@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	testl	%r13d, (%rbx)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rsi
	callq	_set_bit
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_10:
	movq	_RXON_CARD_DISABLED@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_iwl_scan_cancel
LBB0_12:
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_test_bit
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_bit
	cmpq	%rax, %rbx
	je	LBB0_14
## %bb.13:
	movq	8(%r14), %rax
	movl	(%rax), %ebx
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_wiphy_rfkill_set_hw_state
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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 CT:%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	_CT_CARD_DISABLED,4,2           ## @CT_CARD_DISABLED
L_.str.3:                               ## @.str.3
	.asciz	"Reached"

L_.str.4:                               ## @.str.4
	.asciz	"Not reached"

	.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	_HBUS_TARG_MBX_C,4,2            ## @HBUS_TARG_MBX_C
	.comm	_HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED,4,2 ## @HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED
	.comm	_RXON_CARD_DISABLED,4,2         ## @RXON_CARD_DISABLED
	.comm	_CSR_UCODE_DRV_GP1_CLR,4,2      ## @CSR_UCODE_DRV_GP1_CLR
	.comm	_STATUS_RF_KILL_HW,4,2          ## @STATUS_RF_KILL_HW
	.no_dead_strip	_iwlagn_rx_card_state_notif
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_rx_card_state_notif
_iwlagn_rx_card_state_notif:            ; @iwlagn_rx_card_state_notif
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	x0, x1
	bl	_rxb_addr
	ldr	x8, [x0]
	ldr	w0, [x8]
	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	x2, x10, x9, eq
Lloh6:
	adrp	x22, _SW_CARD_DISABLED@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SW_CARD_DISABLED@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	csel	x3, x10, x9, eq
Lloh8:
	adrp	x23, _CT_CARD_DISABLED@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CT_CARD_DISABLED@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh10:
	adrp	x9, l_.str.3@PAGE
Lloh11:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh12:
	adrp	x10, l_.str.4@PAGE
Lloh13:
	add	x10, x10, l_.str.4@PAGEOFF
	tst	w8, w0
	csel	x4, x10, x9, eq
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RF_KILL
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w9, w9, w8
	ldr	w8, [x23]
	orr	w9, w9, w8
Lloh16:
	adrp	x22, _RXON_CARD_DISABLED@GOTPAGE
Lloh17:
	ldr	x22, [x22, _RXON_CARD_DISABLED@GOTPAGEOFF]
	tst	w9, w20
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x8, _CSR_UCODE_DRV_GP1_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1_SET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x24, _CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPAGE
Lloh22:
	ldr	x24, [x24, _CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_iwl_write32
	ldr	w0, [x19, #16]
Lloh23:
	adrp	x25, _HBUS_TARG_MBX_C@GOTPAGE
Lloh24:
	ldr	x25, [x25, _HBUS_TARG_MBX_C@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh25:
	adrp	x26, _HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED@GOTPAGE
Lloh26:
	ldr	x26, [x26, _HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_iwl_write_direct32
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
Lloh27:
	adrp	x8, _CSR_UCODE_DRV_GP1_CLR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CSR_UCODE_DRV_GP1_CLR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x24]
	bl	_iwl_write32
	ldr	w0, [x19, #16]
	ldr	w1, [x25]
	ldr	w2, [x26]
	bl	_iwl_write_direct32
LBB0_3:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_iwl_tt_enter_ct_kill
	ldr	w8, [x23]
LBB0_5:
	tst	w8, w20
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_iwl_tt_exit_ct_kill
LBB0_7:
	ldr	w8, [x21]
Lloh30:
	adrp	x21, _STATUS_RF_KILL_HW@GOTPAGE
Lloh31:
	ldr	x21, [x21, _STATUS_RF_KILL_HW@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	bl	_set_bit
	b	LBB0_10
LBB0_9:
	bl	_clear_bit
LBB0_10:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_iwl_scan_cancel
LBB0_12:
	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.eq	LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	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_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Card state received: HW:%s SW:%s CT:%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	_CT_CARD_DISABLED,4,2           ; @CT_CARD_DISABLED
l_.str.3:                               ; @.str.3
	.asciz	"Reached"

l_.str.4:                               ; @.str.4
	.asciz	"Not reached"

	.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	_HBUS_TARG_MBX_C,4,2            ; @HBUS_TARG_MBX_C
	.comm	_HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED,4,2 ; @HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED
	.comm	_RXON_CARD_DISABLED,4,2         ; @RXON_CARD_DISABLED
	.comm	_CSR_UCODE_DRV_GP1_CLR,4,2      ; @CSR_UCODE_DRV_GP1_CLR
	.comm	_STATUS_RF_KILL_HW,4,2          ; @STATUS_RF_KILL_HW
	.no_dead_strip	_iwlagn_rx_card_state_notif
.subsections_via_symbols
