	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wireless_add
_asus_wireless_add:                     ## @asus_wireless_add
	.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
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, 8(%r15)
	movq	%r15, 72(%rax)
	movq	%r15, %rdi
	callq	_devm_input_allocate_device
	movq	%rax, 64(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_PCI_VENDOR_ID_ASUSTEK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	20(%rax), %esi
	callq	_set_bit
	movq	_KEY_RFKILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	64(%r14), %rax
	movl	16(%rax), %esi
	callq	_set_bit
	movq	64(%r14), %rdi
	callq	_input_register_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movq	_device_ids@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %r12
	cmpq	$0, (%r12)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_acpi_device_hid
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rbx), %r12
	addq	$16, %rbx
	cmpq	$0, (%r12)
	jne	LBB0_6
	jmp	LBB0_8
LBB0_7:
	movq	(%rbx), %rax
	movq	%rax, 56(%r14)
LBB0_8:
	xorl	%ebx, %ebx
	cmpq	$0, 56(%r14)
	je	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.10:
	leaq	48(%r14), %rdi
	movq	_led_state_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rsi
	addq	$8, %rsi
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_led_state_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_led_state_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	$1, 16(%r14)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 24(%r14)
	movq	%r15, %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r15d
	movl	(%r14), %edi
	callq	_destroy_workqueue
	movl	%r15d, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Asus Wireless Radio Control"

L_.str.1:                               ## @.str.1
	.asciz	"asus-wireless/input0"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_PCI_VENDOR_ID_ASUSTEK,4,2      ## @PCI_VENDOR_ID_ASUSTEK
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_RFKILL,4,2                 ## @KEY_RFKILL
	.comm	_device_ids,8,3                 ## @device_ids
L_.str.2:                               ## @.str.2
	.asciz	"asus_wireless_workqueue"

	.comm	_led_state_update,4,2           ## @led_state_update
L_.str.3:                               ## @.str.3
	.asciz	"asus-wireless::airplane"

	.comm	_led_state_set,4,2              ## @led_state_set
	.comm	_led_state_get,4,2              ## @led_state_get
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
L_.str.4:                               ## @.str.4
	.asciz	"rfkill-none"

	.no_dead_strip	_asus_wireless_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wireless_add
_asus_wireless_add:                     ; @asus_wireless_add
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #8]
	str	x19, [x0, #72]
	mov	x0, x19
	bl	_devm_input_allocate_device
	str	x0, [x20, #64]
	cbz	x0, LBB0_10
; %bb.2:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x0]
Lloh7:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PCI_VENDOR_ID_ASUSTEK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PCI_VENDOR_ID_ASUSTEK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh13:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w1, [x0, #20]
	mov	x0, x8
	bl	_set_bit
Lloh16:
	adrp	x8, _KEY_RFKILL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KEY_RFKILL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x20, #64]
	ldr	w1, [x8, #16]
	bl	_set_bit
	ldr	x0, [x20, #64]
	bl	_input_register_device
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.3:
Lloh19:
	adrp	x8, _device_ids@GOTPAGE
Lloh20:
	ldr	x8, [x8, _device_ids@GOTPAGEOFF]
Lloh21:
	ldr	x22, [x8]
	ldr	x21, [x22, #8]
	ldr	x8, [x21]
	cbz	x8, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_acpi_device_hid
	mov	x1, x0
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x22, #24]
	add	x22, x22, #16
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
LBB0_6:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_13
LBB0_7:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x20]
	cbz	w0, LBB0_10
; %bb.8:
	add	x0, x20, #48
Lloh24:
	adrp	x8, _led_state_update@GOTPAGE
Lloh25:
	ldr	x8, [x8, _led_state_update@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh27:
	adrp	x8, l_.str.3@PAGE
Lloh28:
	add	x8, x8, l_.str.3@PAGEOFF
	mov	x1, x20
	str	x8, [x1, #8]!
Lloh29:
	adrp	x8, _led_state_set@GOTPAGE
Lloh30:
	ldr	x8, [x8, _led_state_set@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _led_state_get@GOTPAGE
Lloh33:
	ldr	x9, [x9, _led_state_get@GOTPAGEOFF]
	str	w8, [x1, #32]
Lloh34:
	ldr	w8, [x9]
Lloh35:
	adrp	x9, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh36:
	ldr	x9, [x9, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #24]
	mov	w8, #1
	str	w8, [x1, #8]
Lloh38:
	adrp	x8, l_.str.4@PAGE
Lloh39:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x1, #16]
	mov	x0, x19
	bl	_devm_led_classdev_register
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.9:
	ldr	w0, [x20]
	bl	_destroy_workqueue
	b	LBB0_11
LBB0_10:
Lloh40:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	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
LBB0_12:
	ldr	x8, [x22]
	str	x8, [x20, #56]
	ldr	x8, [x20, #56]
	cbnz	x8, LBB0_7
LBB0_13:
	mov	w21, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Asus Wireless Radio Control"

l_.str.1:                               ; @.str.1
	.asciz	"asus-wireless/input0"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_PCI_VENDOR_ID_ASUSTEK,4,2      ; @PCI_VENDOR_ID_ASUSTEK
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_RFKILL,4,2                 ; @KEY_RFKILL
	.comm	_device_ids,8,3                 ; @device_ids
l_.str.2:                               ; @.str.2
	.asciz	"asus_wireless_workqueue"

	.comm	_led_state_update,4,2           ; @led_state_update
l_.str.3:                               ; @.str.3
	.asciz	"asus-wireless::airplane"

	.comm	_led_state_set,4,2              ; @led_state_set
	.comm	_led_state_get,4,2              ; @led_state_get
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
l_.str.4:                               ; @.str.4
	.asciz	"rfkill-none"

	.no_dead_strip	_asus_wireless_add
.subsections_via_symbols
