	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_new_rfkill
_asus_new_rfkill:                       ## @asus_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%r8d, %esi
	callq	_asus_wmi_get_devstate_simple
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movl	%r12d, (%r14)
	movq	%rbx, 8(%r14)
	movq	_ASUS_WMI_DEVID_WLAN@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	movq	_asus_rfkill_wlan_ops@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_asus_rfkill_ops@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rdi
	movq	8(%rbx), %rsi
	movq	%r14, %r8
	callq	_rfkill_alloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_ASUS_WMI_DEVID_WLAN@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_10
## %bb.8:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	jle	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_rfkill_set_led_trigger_name
	movq	16(%r14), %rax
LBB0_10:
	xorl	%esi, %esi
	testl	%r15d, %r15d
	sete	%sil
	movq	%rax, %rdi
	callq	_rfkill_init_sw_state
	movq	16(%r14), %rdi
	callq	_rfkill_register
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	callq	_rfkill_destroy
	movq	$0, 16(%r14)
	jmp	LBB0_13
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_11:
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASUS_WMI_DEVID_WLAN,4,2        ## @ASUS_WMI_DEVID_WLAN
	.comm	_asus_rfkill_wlan_ops,4,2       ## @asus_rfkill_wlan_ops
	.comm	_asus_rfkill_ops,4,2            ## @asus_rfkill_ops
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asus-wlan"

	.no_dead_strip	_asus_new_rfkill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_new_rfkill
_asus_new_rfkill:                       ; @asus_new_rfkill
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	mov	x1, x4
	bl	_asus_wmi_get_devstate_simple
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.1:
	str	w21, [x19]
	str	x22, [x19, #8]
Lloh0:
	adrp	x25, _ASUS_WMI_DEVID_WLAN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ASUS_WMI_DEVID_WLAN@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh2:
	adrp	x3, _asus_rfkill_wlan_ops@GOTPAGE
Lloh3:
	ldr	x3, [x3, _asus_rfkill_wlan_ops@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x3, _asus_rfkill_ops@GOTPAGE
Lloh5:
	ldr	x3, [x3, _asus_rfkill_ops@GOTPAGEOFF]
LBB0_5:
	ldr	x1, [x22, #8]
	mov	x0, x24
	mov	x2, x23
	mov	x4, x19
	bl	_rfkill_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.6:
	ldr	w8, [x25]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rfkill_set_led_trigger_name
	ldr	x0, [x19, #16]
LBB0_9:
	cmp	w20, #0
	cset	w1, eq
	bl	_rfkill_init_sw_state
	ldr	x0, [x19, #16]
	bl	_rfkill_register
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.10:
	ldr	x0, [x19, #16]
	bl	_rfkill_destroy
	str	xzr, [x19, #16]
	b	LBB0_12
LBB0_11:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ASUS_WMI_DEVID_WLAN,4,2        ; @ASUS_WMI_DEVID_WLAN
	.comm	_asus_rfkill_wlan_ops,4,2       ; @asus_rfkill_wlan_ops
	.comm	_asus_rfkill_ops,4,2            ; @asus_rfkill_ops
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asus-wlan"

	.no_dead_strip	_asus_new_rfkill
.subsections_via_symbols
