	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_rfkill_init
_asus_wmi_rfkill_init:                  ## @asus_wmi_rfkill_init
	.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	%rdi, %r14
	addq	$36, %rdi
	callq	_mutex_init
	leaq	32(%r14), %rdi
	callq	_mutex_init
	leaq	28(%r14), %rsi
	movq	_RFKILL_TYPE_WLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ASUS_WMI_DEVID_WLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_new_rfkill
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jne	LBB0_17
LBB0_2:
	leaq	24(%r14), %rsi
	movq	_RFKILL_TYPE_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ASUS_WMI_DEVID_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_new_rfkill
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jne	LBB0_17
LBB0_4:
	leaq	20(%r14), %rsi
	movq	_RFKILL_TYPE_WIMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ASUS_WMI_DEVID_WIMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_new_rfkill
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jne	LBB0_17
LBB0_6:
	leaq	16(%r14), %rsi
	movq	_RFKILL_TYPE_WWAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ASUS_WMI_DEVID_WWAN3G@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_new_rfkill
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jne	LBB0_17
LBB0_8:
	leaq	12(%r14), %rsi
	movq	_RFKILL_TYPE_GPS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ASUS_WMI_DEVID_GPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_new_rfkill
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jne	LBB0_17
LBB0_10:
	leaq	8(%r14), %rsi
	movq	_RFKILL_TYPE_UWB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ASUS_WMI_DEVID_UWB@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	callq	_asus_new_rfkill
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	%eax, %ebx
	jne	LBB0_17
LBB0_12:
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_asus_setup_pci_hotplug
	movl	%eax, %ebx
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_asus_register_rfkill_notifier
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_asus_register_rfkill_notifier
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_asus_register_rfkill_notifier
	movq	%r14, %rdi
	callq	_asus_rfkill_hotplug
	xorl	%ecx, %ecx
	addl	%ebx, %r15d
	je	LBB0_20
LBB0_14:
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.16:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	cmpl	%eax, %ebx
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_asus_wmi_rfkill_exit
LBB0_19:
	movl	%ebx, %ecx
LBB0_20:
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	(%rdx), %edx
	addl	%ecx, %edx
	cmovnel	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%ecx, %ecx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asus-wlan"

	.comm	_RFKILL_TYPE_WLAN,4,2           ## @RFKILL_TYPE_WLAN
	.comm	_ASUS_WMI_DEVID_WLAN,4,2        ## @ASUS_WMI_DEVID_WLAN
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"asus-bluetooth"

	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ## @RFKILL_TYPE_BLUETOOTH
	.comm	_ASUS_WMI_DEVID_BLUETOOTH,4,2   ## @ASUS_WMI_DEVID_BLUETOOTH
L_.str.2:                               ## @.str.2
	.asciz	"asus-wimax"

	.comm	_RFKILL_TYPE_WIMAX,4,2          ## @RFKILL_TYPE_WIMAX
	.comm	_ASUS_WMI_DEVID_WIMAX,4,2       ## @ASUS_WMI_DEVID_WIMAX
L_.str.3:                               ## @.str.3
	.asciz	"asus-wwan3g"

	.comm	_RFKILL_TYPE_WWAN,4,2           ## @RFKILL_TYPE_WWAN
	.comm	_ASUS_WMI_DEVID_WWAN3G,4,2      ## @ASUS_WMI_DEVID_WWAN3G
L_.str.4:                               ## @.str.4
	.asciz	"asus-gps"

	.comm	_RFKILL_TYPE_GPS,4,2            ## @RFKILL_TYPE_GPS
	.comm	_ASUS_WMI_DEVID_GPS,4,2         ## @ASUS_WMI_DEVID_GPS
L_.str.5:                               ## @.str.5
	.asciz	"asus-uwb"

	.comm	_RFKILL_TYPE_UWB,4,2            ## @RFKILL_TYPE_UWB
	.comm	_ASUS_WMI_DEVID_UWB,4,2         ## @ASUS_WMI_DEVID_UWB
	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.6:                               ## @.str.6
	.asciz	"\\_SB.PCI0.P0P5"

L_.str.7:                               ## @.str.7
	.asciz	"\\_SB.PCI0.P0P6"

L_.str.8:                               ## @.str.8
	.asciz	"\\_SB.PCI0.P0P7"

	.no_dead_strip	_asus_wmi_rfkill_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_rfkill_init
_asus_wmi_rfkill_init:                  ; @asus_wmi_rfkill_init
	.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
	mov	x19, x0
	add	x0, x0, #36
	bl	_mutex_init
	add	x0, x19, #32
	bl	_mutex_init
	add	x1, x19, #28
Lloh0:
	adrp	x8, _RFKILL_TYPE_WLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFKILL_TYPE_WLAN@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _ASUS_WMI_DEVID_WLAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASUS_WMI_DEVID_WLAN@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_asus_new_rfkill
Lloh8:
	adrp	x21, _ENODEV@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ENODEV@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_2:
	add	x1, x19, #24
Lloh10:
	adrp	x8, _RFKILL_TYPE_BLUETOOTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RFKILL_TYPE_BLUETOOTH@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x8, _ASUS_WMI_DEVID_BLUETOOTH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASUS_WMI_DEVID_BLUETOOTH@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_asus_new_rfkill
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_4:
	add	x1, x19, #20
Lloh18:
	adrp	x8, _RFKILL_TYPE_WIMAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RFKILL_TYPE_WIMAX@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _ASUS_WMI_DEVID_WIMAX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ASUS_WMI_DEVID_WIMAX@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_asus_new_rfkill
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_6:
	add	x1, x19, #16
Lloh26:
	adrp	x8, _RFKILL_TYPE_WWAN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RFKILL_TYPE_WWAN@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x8, _ASUS_WMI_DEVID_WWAN3G@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ASUS_WMI_DEVID_WWAN3G@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
Lloh32:
	adrp	x2, l_.str.3@PAGE
Lloh33:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_asus_new_rfkill
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_8:
	add	x1, x19, #12
Lloh34:
	adrp	x8, _RFKILL_TYPE_GPS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RFKILL_TYPE_GPS@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x8, _ASUS_WMI_DEVID_GPS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ASUS_WMI_DEVID_GPS@GOTPAGEOFF]
Lloh39:
	ldr	w4, [x8]
Lloh40:
	adrp	x2, l_.str.4@PAGE
Lloh41:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_asus_new_rfkill
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_17
LBB0_10:
	add	x1, x19, #8
Lloh42:
	adrp	x8, _RFKILL_TYPE_UWB@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RFKILL_TYPE_UWB@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
Lloh45:
	adrp	x8, _ASUS_WMI_DEVID_UWB@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ASUS_WMI_DEVID_UWB@GOTPAGEOFF]
Lloh47:
	ldr	w4, [x8]
Lloh48:
	adrp	x2, l_.str.5@PAGE
Lloh49:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_asus_new_rfkill
	mov	x20, x0
	cbz	w0, LBB0_12
; %bb.11:
	ldr	w8, [x21]
	cmn	w20, w8
	b.ne	LBB0_17
LBB0_12:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_asus_setup_pci_hotplug
	mov	x20, x0
Lloh50:
	adrp	x8, _EBUSY@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh52:
	ldr	w22, [x8]
Lloh53:
	adrp	x1, l_.str.6@PAGE
Lloh54:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_asus_register_rfkill_notifier
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_asus_register_rfkill_notifier
Lloh57:
	adrp	x1, l_.str.8@PAGE
Lloh58:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_asus_register_rfkill_notifier
	mov	x0, x19
	bl	_asus_rfkill_hotplug
	cmn	w20, w22
	b.ne	LBB0_15
; %bb.14:
	mov	w20, #0
	b	LBB0_19
LBB0_15:
	cbz	w20, LBB0_19
; %bb.16:
	ldr	w8, [x21]
LBB0_17:
	neg	w8, w8
	cmp	w20, w8
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_asus_wmi_rfkill_exit
LBB0_19:
	ldr	w8, [x21]
	cmn	w20, w8
	csel	w0, wzr, w20, eq
	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	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asus-wlan"

	.comm	_RFKILL_TYPE_WLAN,4,2           ; @RFKILL_TYPE_WLAN
	.comm	_ASUS_WMI_DEVID_WLAN,4,2        ; @ASUS_WMI_DEVID_WLAN
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"asus-bluetooth"

	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ; @RFKILL_TYPE_BLUETOOTH
	.comm	_ASUS_WMI_DEVID_BLUETOOTH,4,2   ; @ASUS_WMI_DEVID_BLUETOOTH
l_.str.2:                               ; @.str.2
	.asciz	"asus-wimax"

	.comm	_RFKILL_TYPE_WIMAX,4,2          ; @RFKILL_TYPE_WIMAX
	.comm	_ASUS_WMI_DEVID_WIMAX,4,2       ; @ASUS_WMI_DEVID_WIMAX
l_.str.3:                               ; @.str.3
	.asciz	"asus-wwan3g"

	.comm	_RFKILL_TYPE_WWAN,4,2           ; @RFKILL_TYPE_WWAN
	.comm	_ASUS_WMI_DEVID_WWAN3G,4,2      ; @ASUS_WMI_DEVID_WWAN3G
l_.str.4:                               ; @.str.4
	.asciz	"asus-gps"

	.comm	_RFKILL_TYPE_GPS,4,2            ; @RFKILL_TYPE_GPS
	.comm	_ASUS_WMI_DEVID_GPS,4,2         ; @ASUS_WMI_DEVID_GPS
l_.str.5:                               ; @.str.5
	.asciz	"asus-uwb"

	.comm	_RFKILL_TYPE_UWB,4,2            ; @RFKILL_TYPE_UWB
	.comm	_ASUS_WMI_DEVID_UWB,4,2         ; @ASUS_WMI_DEVID_UWB
	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.6:                               ; @.str.6
	.asciz	"\\_SB.PCI0.P0P5"

l_.str.7:                               ; @.str.7
	.asciz	"\\_SB.PCI0.P0P6"

l_.str.8:                               ; @.str.8
	.asciz	"\\_SB.PCI0.P0P7"

	.no_dead_strip	_asus_wmi_rfkill_init
.subsections_via_symbols
