	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swsmi_rfkill_query
_swsmi_rfkill_query:                    ## @swsmi_rfkill_query
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rdi
	leaq	-24(%rbp), %rsi
	callq	_swsmi_wireless_status
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_RFKILL_TYPE_WLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_WL_STATUS_WLAN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_RFKILL_TYPE_BLUETOOTH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_WL_STATUS_BT@GOTPCREL(%rip), %rax
LBB0_5:
	movq	-24(%rbp), %rcx
	movq	(%rax), %rax
	xorl	%esi, %esi
	cmpl	$0, (%rcx,%rax,4)
	sete	%sil
	movq	%r14, %rdi
	callq	_rfkill_set_sw_state
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RFKILL_TYPE_WLAN,8,3           ## @RFKILL_TYPE_WLAN
	.comm	_WL_STATUS_WLAN,8,3             ## @WL_STATUS_WLAN
	.comm	_RFKILL_TYPE_BLUETOOTH,8,3      ## @RFKILL_TYPE_BLUETOOTH
	.comm	_WL_STATUS_BT,8,3               ## @WL_STATUS_BT
	.no_dead_strip	_swsmi_rfkill_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swsmi_rfkill_query
_swsmi_rfkill_query:                    ; @swsmi_rfkill_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x1, #8]
	add	x1, sp, #8
	bl	_swsmi_wireless_status
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RFKILL_TYPE_WLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RFKILL_TYPE_WLAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _WL_STATUS_WLAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WL_STATUS_WLAN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x9, _RFKILL_TYPE_BLUETOOTH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RFKILL_TYPE_BLUETOOTH@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _WL_STATUS_BT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WL_STATUS_BT@GOTPAGEOFF]
LBB0_5:
	ldr	x9, [sp, #8]
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_rfkill_set_sw_state
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RFKILL_TYPE_WLAN,8,3           ; @RFKILL_TYPE_WLAN
	.comm	_WL_STATUS_WLAN,8,3             ; @WL_STATUS_WLAN
	.comm	_RFKILL_TYPE_BLUETOOTH,8,3      ; @RFKILL_TYPE_BLUETOOTH
	.comm	_WL_STATUS_BT,8,3               ; @WL_STATUS_BT
	.no_dead_strip	_swsmi_rfkill_query
.subsections_via_symbols
