	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acer_rfkill_register
_acer_rfkill_register:                  ## @acer_rfkill_register
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %rax
	movl	%esi, %edx
	movq	%rdi, %rsi
	movq	_acer_rfkill_ops@GOTPCREL(%rip), %rcx
	movq	%rax, %rdi
	movq	%rbx, %r8
	callq	_rfkill_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_get_u32
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_rfkill_register
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_rfkill_destroy
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movl	%r15d, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	cmpq	$0, -32(%rbp)
	sete	%sil
	movq	%r14, %rdi
	callq	_rfkill_set_sw_state
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acer_rfkill_ops,4,2            ## @acer_rfkill_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_acer_rfkill_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acer_rfkill_register
_acer_rfkill_register:                  ; @acer_rfkill_register
	.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, x3
	mov	x8, x1
	mov	x1, x0
Lloh0:
	adrp	x3, _acer_rfkill_ops@GOTPAGE
Lloh1:
	ldr	x3, [x3, _acer_rfkill_ops@GOTPAGEOFF]
	mov	x0, x2
	mov	x2, x8
	mov	x4, x20
	bl	_rfkill_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	_get_u32
	mov	x20, x0
	mov	x0, x19
	bl	_rfkill_register
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_rfkill_destroy
	mov	x0, x21
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_4:
	mov	x0, x20
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_rfkill_set_sw_state
LBB0_6:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_acer_rfkill_ops,4,2            ; @acer_rfkill_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_acer_rfkill_register
.subsections_via_symbols
