	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rf_kill_active
_rf_kill_active:                        ## @rf_kill_active
	.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, %r15
	movl	$0, -44(%rbp)
	movq	_HW_FEATURE_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.1:
	movl	$40, %edi
	callq	_udelay
	movl	16(%r15), %edi
	movq	_IPW_REG_GPIO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %r14
	movq	%r14, %rdx
	callq	_read_register
	movq	_IPW_BIT_GPIO_RF_KILL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	%rcx, %r12
	xorl	%ebx, %ebx
	andl	-44(%rbp), %eax
	sete	%bl
	movl	$40, %edi
	callq	_udelay
	movl	16(%r15), %edi
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_read_register
	movl	(%r12), %eax
	xorl	%ecx, %ecx
	andl	-44(%rbp), %eax
	sete	%cl
	leal	(%rcx,%rbx,2), %ebx
	movl	$40, %edi
	callq	_udelay
	movl	16(%r15), %edi
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_read_register
	movl	(%r12), %eax
	xorl	%r12d, %r12d
	andl	-44(%rbp), %eax
	sete	%r12b
	movl	$40, %edi
	callq	_udelay
	movl	16(%r15), %edi
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_read_register
	addl	%r12d, %r12d
	leal	(%r12,%rbx,4), %eax
	movq	_IPW_BIT_GPIO_RF_KILL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	xorl	%ebx, %ebx
	andl	-44(%rbp), %ecx
	sete	%bl
	orl	%eax, %ebx
	movl	$40, %edi
	callq	_udelay
	movl	16(%r15), %edi
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_read_register
	addl	%ebx, %ebx
	movl	(%r12), %eax
	xorl	%ecx, %ecx
	testl	%eax, -44(%rbp)
	sete	%cl
	movzbl	%bl, %r14d
	orl	%ecx, %r14d
	movq	8(%r15), %rax
	movl	(%rax), %edi
	je	LBB0_2
## %bb.3:
	xorl	%esi, %esi
	callq	_wiphy_rfkill_set_hw_state
	movq	_STATUS_RF_KILL_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r15)
	jmp	LBB0_4
LBB0_6:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_wiphy_rfkill_set_hw_state
	movq	_STATUS_RF_KILL_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r15)
	jmp	LBB0_5
LBB0_2:
	movl	$1, %esi
	callq	_wiphy_rfkill_set_hw_state
	movq	_STATUS_RF_KILL_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
LBB0_4:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	sete	%bl
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_FEATURE_RFKILL,4,2          ## @HW_FEATURE_RFKILL
	.comm	_STATUS_RF_KILL_HW,4,2          ## @STATUS_RF_KILL_HW
	.comm	_IPW_REG_GPIO,4,2               ## @IPW_REG_GPIO
	.comm	_IPW_BIT_GPIO_RF_KILL,4,2       ## @IPW_BIT_GPIO_RF_KILL
	.comm	_MAX_RF_KILL_CHECKS,4,2         ## @MAX_RF_KILL_CHECKS
	.comm	_RF_KILL_CHECK_DELAY,4,2        ## @RF_KILL_CHECK_DELAY
	.no_dead_strip	_rf_kill_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rf_kill_active
_rf_kill_active:                        ; @rf_kill_active
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HW_FEATURE_RFKILL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_FEATURE_RFKILL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x20, _IPW_REG_GPIO@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IPW_REG_GPIO@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_read_register
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x21, _IPW_BIT_GPIO_RF_KILL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _IPW_BIT_GPIO_RF_KILL@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w22, eq
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_read_register
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w23, eq
	bfi	w23, w22, #1, #1
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_read_register
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w22, eq
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_read_register
	lsl	w8, w22, #1
	bfi	w8, w23, #2, #2
	ldr	w9, [sp, #12]
	ldr	w10, [x21]
	tst	w10, w9
	cset	w9, eq
	orr	w22, w8, w9
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_read_register
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w20, eq
	bfi	w20, w22, #1, #31
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	cbz	w20, LBB0_4
; %bb.2:
	mov	w1, #0
	bl	_wiphy_rfkill_set_hw_state
Lloh7:
	adrp	x8, _STATUS_RF_KILL_HW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _STATUS_RF_KILL_HW@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_wiphy_rfkill_set_hw_state
	mov	w0, #0
Lloh10:
	adrp	x8, _STATUS_RF_KILL_HW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STATUS_RF_KILL_HW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_4:
	mov	w1, #1
	bl	_wiphy_rfkill_set_hw_state
Lloh13:
	adrp	x8, _STATUS_RF_KILL_HW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STATUS_RF_KILL_HW@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
LBB0_5:
	str	w8, [x19, #4]
	cmp	w20, #0
	cset	w0, eq
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_FEATURE_RFKILL,4,2          ; @HW_FEATURE_RFKILL
	.comm	_STATUS_RF_KILL_HW,4,2          ; @STATUS_RF_KILL_HW
	.comm	_IPW_REG_GPIO,4,2               ; @IPW_REG_GPIO
	.comm	_IPW_BIT_GPIO_RF_KILL,4,2       ; @IPW_BIT_GPIO_RF_KILL
	.comm	_MAX_RF_KILL_CHECKS,4,2         ; @MAX_RF_KILL_CHECKS
	.comm	_RF_KILL_CHECK_DELAY,4,2        ; @RF_KILL_CHECK_DELAY
	.no_dead_strip	_rf_kill_active
.subsections_via_symbols
