	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oaktrail_rfkill_init
_oaktrail_rfkill_init:                  ## @oaktrail_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_RFKILL_TYPE_WLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OT_EC_WIFI_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_oaktrail_rfkill_new
	movq	_wifi_rfkill@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_RFKILL_TYPE_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OT_EC_BT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_oaktrail_rfkill_new
	movq	_bt_rfkill@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_RFKILL_TYPE_GPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OT_EC_GPS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_oaktrail_rfkill_new
	movq	_gps_rfkill@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_RFKILL_TYPE_WWAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OT_EC_WWAN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_oaktrail_rfkill_new
	movq	_wwan_rfkill@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	$0, (%rbx)
	xorl	%eax, %eax
	callq	_oaktrail_rfkill_cleanup
	movl	%r14d, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"oaktrail-wifi"

	.comm	_RFKILL_TYPE_WLAN,4,2           ## @RFKILL_TYPE_WLAN
	.comm	_OT_EC_WIFI_MASK,4,2            ## @OT_EC_WIFI_MASK
	.comm	_wifi_rfkill,8,3                ## @wifi_rfkill
L_.str.1:                               ## @.str.1
	.asciz	"oaktrail-bluetooth"

	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ## @RFKILL_TYPE_BLUETOOTH
	.comm	_OT_EC_BT_MASK,4,2              ## @OT_EC_BT_MASK
	.comm	_bt_rfkill,8,3                  ## @bt_rfkill
L_.str.2:                               ## @.str.2
	.asciz	"oaktrail-gps"

	.comm	_RFKILL_TYPE_GPS,4,2            ## @RFKILL_TYPE_GPS
	.comm	_OT_EC_GPS_MASK,4,2             ## @OT_EC_GPS_MASK
	.comm	_gps_rfkill,8,3                 ## @gps_rfkill
L_.str.3:                               ## @.str.3
	.asciz	"oaktrail-wwan"

	.comm	_RFKILL_TYPE_WWAN,4,2           ## @RFKILL_TYPE_WWAN
	.comm	_OT_EC_WWAN_MASK,4,2            ## @OT_EC_WWAN_MASK
	.comm	_wwan_rfkill,8,3                ## @wwan_rfkill
	.no_dead_strip	_oaktrail_rfkill_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oaktrail_rfkill_init
_oaktrail_rfkill_init:                  ; @oaktrail_rfkill_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _RFKILL_TYPE_WLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFKILL_TYPE_WLAN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OT_EC_WIFI_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OT_EC_WIFI_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_oaktrail_rfkill_new
Lloh8:
	adrp	x20, _wifi_rfkill@GOTPAGE
Lloh9:
	ldr	x20, [x20, _wifi_rfkill@GOTPAGEOFF]
	str	x0, [x20]
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.1:
Lloh10:
	adrp	x8, _RFKILL_TYPE_BLUETOOTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RFKILL_TYPE_BLUETOOTH@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _OT_EC_BT_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OT_EC_BT_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_oaktrail_rfkill_new
Lloh18:
	adrp	x20, _bt_rfkill@GOTPAGE
Lloh19:
	ldr	x20, [x20, _bt_rfkill@GOTPAGEOFF]
	str	x0, [x20]
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.2:
Lloh20:
	adrp	x8, _RFKILL_TYPE_GPS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RFKILL_TYPE_GPS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _OT_EC_GPS_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OT_EC_GPS_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_oaktrail_rfkill_new
Lloh28:
	adrp	x20, _gps_rfkill@GOTPAGE
Lloh29:
	ldr	x20, [x20, _gps_rfkill@GOTPAGEOFF]
	str	x0, [x20]
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.3:
Lloh30:
	adrp	x8, _RFKILL_TYPE_WWAN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RFKILL_TYPE_WWAN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _OT_EC_WWAN_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _OT_EC_WWAN_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_oaktrail_rfkill_new
Lloh38:
	adrp	x20, _wwan_rfkill@GOTPAGE
Lloh39:
	ldr	x20, [x20, _wwan_rfkill@GOTPAGEOFF]
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_5
LBB0_4:
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x19, x0
	str	xzr, [x20]
	bl	_oaktrail_rfkill_cleanup
	mov	x0, x19
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"oaktrail-wifi"

	.comm	_RFKILL_TYPE_WLAN,4,2           ; @RFKILL_TYPE_WLAN
	.comm	_OT_EC_WIFI_MASK,4,2            ; @OT_EC_WIFI_MASK
	.comm	_wifi_rfkill,8,3                ; @wifi_rfkill
l_.str.1:                               ; @.str.1
	.asciz	"oaktrail-bluetooth"

	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ; @RFKILL_TYPE_BLUETOOTH
	.comm	_OT_EC_BT_MASK,4,2              ; @OT_EC_BT_MASK
	.comm	_bt_rfkill,8,3                  ; @bt_rfkill
l_.str.2:                               ; @.str.2
	.asciz	"oaktrail-gps"

	.comm	_RFKILL_TYPE_GPS,4,2            ; @RFKILL_TYPE_GPS
	.comm	_OT_EC_GPS_MASK,4,2             ; @OT_EC_GPS_MASK
	.comm	_gps_rfkill,8,3                 ; @gps_rfkill
l_.str.3:                               ; @.str.3
	.asciz	"oaktrail-wwan"

	.comm	_RFKILL_TYPE_WWAN,4,2           ; @RFKILL_TYPE_WWAN
	.comm	_OT_EC_WWAN_MASK,4,2            ; @OT_EC_WWAN_MASK
	.comm	_wwan_rfkill,8,3                ; @wwan_rfkill
	.no_dead_strip	_oaktrail_rfkill_init
.subsections_via_symbols
