	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfkill_set_block
_rfkill_set_block:                      ## @rfkill_set_block
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_card_blocked@GOTPCREL(%rip), %r14
	xorl	%eax, %eax
	cmpl	%esi, (%r14)
	je	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	testl	%esi, %esi
	jne	LBB0_2
## %bb.3:
	movq	_EC_WLAN_LEAVE_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_EC_WLAN_ENTER_RESET@GOTPCREL(%rip), %rax
LBB0_4:
	movzbl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_olpc_ec_cmd
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, (%r14)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_card_blocked,4,2               ## @card_blocked
	.comm	_EC_WLAN_ENTER_RESET,1,0        ## @EC_WLAN_ENTER_RESET
	.comm	_EC_WLAN_LEAVE_RESET,1,0        ## @EC_WLAN_LEAVE_RESET
	.no_dead_strip	_rfkill_set_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfkill_set_block
_rfkill_set_block:                      ; @rfkill_set_block
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _card_blocked@GOTPAGE
Lloh1:
	ldr	x20, [x20, _card_blocked@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x1
Lloh2:
	adrp	x8, _EC_WLAN_LEAVE_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EC_WLAN_LEAVE_RESET@GOTPAGEOFF]
Lloh4:
	adrp	x9, _EC_WLAN_ENTER_RESET@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EC_WLAN_ENTER_RESET@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldrb	w0, [x8]
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_olpc_ec_cmd
	cbnz	w0, LBB0_4
; %bb.3:
	str	w19, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_card_blocked,4,2               ; @card_blocked
	.comm	_EC_WLAN_ENTER_RESET,1,0        ; @EC_WLAN_ENTER_RESET
	.comm	_EC_WLAN_LEAVE_RESET,1,0        ; @EC_WLAN_LEAVE_RESET
	.no_dead_strip	_rfkill_set_block
.subsections_via_symbols
