	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amilo_m7440_rfkill_set_block
_amilo_m7440_rfkill_set_block:          ## @amilo_m7440_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	movq	_M7440_RADIO_OFF1@GOTPCREL(%rip), %rax
	cmoveq	_M7440_RADIO_ON1@GOTPCREL(%rip), %rax
	movq	_M7440_RADIO_OFF2@GOTPCREL(%rip), %rcx
	cmoveq	_M7440_RADIO_ON2@GOTPCREL(%rip), %rcx
	movq	(%rax), %rbx
	movq	(%rcx), %r14
	movq	_M7440_PORT1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_outb
	movq	_M7440_PORT2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_outb
	movl	(%r12), %edi
	callq	_inb
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	callq	_inb
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	je	LBB0_3
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M7440_RADIO_OFF1,8,3           ## @M7440_RADIO_OFF1
	.comm	_M7440_RADIO_ON1,8,3            ## @M7440_RADIO_ON1
	.comm	_M7440_RADIO_OFF2,8,3           ## @M7440_RADIO_OFF2
	.comm	_M7440_RADIO_ON2,8,3            ## @M7440_RADIO_ON2
	.comm	_M7440_PORT1,4,2                ## @M7440_PORT1
	.comm	_M7440_PORT2,4,2                ## @M7440_PORT2
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_amilo_m7440_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 amilo_m7440_rfkill_set_block
_amilo_m7440_rfkill_set_block:          ; @amilo_m7440_rfkill_set_block
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _M7440_RADIO_OFF1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M7440_RADIO_OFF1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M7440_RADIO_ON1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M7440_RADIO_ON1@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
Lloh4:
	adrp	x9, _M7440_RADIO_OFF2@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M7440_RADIO_OFF2@GOTPAGEOFF]
Lloh6:
	adrp	x10, _M7440_RADIO_ON2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M7440_RADIO_ON2@GOTPAGEOFF]
	ldr	x20, [x8]
	csel	x8, x10, x9, eq
	ldr	x19, [x8]
Lloh8:
	adrp	x22, _M7440_PORT1@GOTPAGE
Lloh9:
	ldr	x22, [x22, _M7440_PORT1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_outb
Lloh10:
	adrp	x21, _M7440_PORT2@GOTPAGE
Lloh11:
	ldr	x21, [x21, _M7440_PORT2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_outb
	ldr	w0, [x22]
	bl	_inb
	cmp	x0, x20
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x21]
	bl	_inb
	cmp	x0, x19
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_M7440_RADIO_OFF1,8,3           ; @M7440_RADIO_OFF1
	.comm	_M7440_RADIO_ON1,8,3            ; @M7440_RADIO_ON1
	.comm	_M7440_RADIO_OFF2,8,3           ; @M7440_RADIO_OFF2
	.comm	_M7440_RADIO_ON2,8,3            ; @M7440_RADIO_ON2
	.comm	_M7440_PORT1,4,2                ; @M7440_PORT1
	.comm	_M7440_PORT2,4,2                ; @M7440_PORT2
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_amilo_m7440_rfkill_set_block
.subsections_via_symbols
