	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swsmi_rfkill_set
_swsmi_rfkill_set:                      ## @swsmi_rfkill_set
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	(%r15), %r12
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_swsmi_wireless_status
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	-40(%rbp), %rax
	cmpl	$2, (%rax)
	je	LBB0_3
## %bb.2:
	cmpl	$2, 4(%rax)
	je	LBB0_3
## %bb.4:
	cmpl	$2, 8(%rax)
	je	LBB0_5
LBB0_6:
	cmpl	$2, 12(%rax)
	jne	LBB0_8
LBB0_7:
	movl	$0, 4(%rax)
LBB0_8:
	movq	(%rbx), %rcx
	movq	_RFKILL_TYPE_WLAN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:
	movq	_WL_STATUS_WLAN@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_3:
	movl	$0, 4(%rax)
	cmpl	$2, 8(%rax)
	jne	LBB0_6
LBB0_5:
	movl	$0, 4(%rax)
	cmpl	$2, 12(%rax)
	je	LBB0_7
	jmp	LBB0_8
LBB0_10:
	movq	_RFKILL_TYPE_BLUETOOTH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.11:
	movq	_WL_STATUS_BT@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	movq	(%rcx), %rcx
	movl	%edx, (%rax,%rcx,4)
LBB0_13:
	movl	(%r12), %esi
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rcx, %rdx
	callq	_sabi_command
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swsmi_rfkill_set
_swsmi_rfkill_set:                      ; @swsmi_rfkill_set
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	x22, [x19]
	add	x1, sp, #8
	mov	x0, x19
	bl	_swsmi_wireless_status
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	cmp	w9, #2
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x8, #4]
	cmp	w9, #2
	b.ne	LBB0_4
LBB0_3:
	str	wzr, [x8, #4]
LBB0_4:
	ldr	w9, [x8, #8]
	cmp	w9, #2
	b.ne	LBB0_6
; %bb.5:
	str	wzr, [x8, #4]
LBB0_6:
	ldr	w9, [x8, #12]
	cmp	w9, #2
	b.ne	LBB0_8
; %bb.7:
	str	wzr, [x8, #4]
LBB0_8:
	ldr	x9, [x21]
Lloh0:
	adrp	x10, _RFKILL_TYPE_WLAN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RFKILL_TYPE_WLAN@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_10
; %bb.9:
Lloh3:
	adrp	x9, _WL_STATUS_WLAN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WL_STATUS_WLAN@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x10, _RFKILL_TYPE_BLUETOOTH@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RFKILL_TYPE_BLUETOOTH@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.11:
Lloh8:
	adrp	x9, _WL_STATUS_BT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WL_STATUS_BT@GOTPAGEOFF]
LBB0_12:
	cmp	w20, #0
	cset	w10, eq
	ldr	x9, [x9]
	str	w10, [x8, x9, lsl #2]
LBB0_13:
	ldr	w1, [x22]
	add	x2, sp, #8
	add	x3, sp, #8
	mov	x0, x19
	bl	_sabi_command
LBB0_14:
	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 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_set
.subsections_via_symbols
