	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeepc_new_rfkill
_eeepc_new_rfkill:                      ## @eeepc_new_rfkill
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leaq	-44(%rbp), %rdx
	movl	%r8d, %esi
	callq	_acpi_setter_handle
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r12), %rsi
	movl	-44(%rbp), %r8d
	movq	_eeepc_rfkill_ops@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_rfkill_alloc
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_get_acpi
	xorl	%esi, %esi
	cmpl	$1, %eax
	setne	%sil
	movq	%rbx, %rdi
	callq	_rfkill_init_sw_state
	movq	(%r14), %rdi
	callq	_rfkill_register
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_rfkill_destroy
	movq	$0, (%r14)
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eeepc_rfkill_ops,4,2           ## @eeepc_rfkill_ops
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_eeepc_new_rfkill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeepc_new_rfkill
_eeepc_new_rfkill:                      ; @eeepc_new_rfkill
	.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	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
	add	x2, sp, #12
	mov	x1, x4
	bl	_acpi_setter_handle
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x1, [x21]
	ldr	w4, [sp, #12]
Lloh0:
	adrp	x3, _eeepc_rfkill_ops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _eeepc_rfkill_ops@GOTPAGEOFF]
	mov	x0, x24
	mov	x2, x23
	bl	_rfkill_alloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_get_acpi
	cmp	w0, #1
	cset	w1, ne
	mov	x0, x22
	bl	_rfkill_init_sw_state
	ldr	x0, [x19]
	bl	_rfkill_register
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x0, [x19]
	bl	_rfkill_destroy
	str	xzr, [x19]
	b	LBB0_6
LBB0_4:
	mov	x22, x0
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_eeepc_rfkill_ops,4,2           ; @eeepc_rfkill_ops
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_eeepc_new_rfkill
.subsections_via_symbols
