	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pega_rfkill_init
_pega_rfkill_init:                      ## @pega_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
	cmpl	$0, 12(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	8(%rdi), %rsi
	movq	_PEGA_WLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RFKILL_TYPE_WLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	callq	_pega_rfkill_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	4(%r14), %rsi
	movq	_PEGA_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RFKILL_TYPE_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_pega_rfkill_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_PEGA_WWAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RFKILL_TYPE_WWAN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_pega_rfkill_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_asus_rfkill_exit
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pega-wlan"

	.comm	_PEGA_WLAN,4,2                  ## @PEGA_WLAN
	.comm	_RFKILL_TYPE_WLAN,4,2           ## @RFKILL_TYPE_WLAN
L_.str.1:                               ## @.str.1
	.asciz	"pega-bt"

	.comm	_PEGA_BLUETOOTH,4,2             ## @PEGA_BLUETOOTH
	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ## @RFKILL_TYPE_BLUETOOTH
L_.str.2:                               ## @.str.2
	.asciz	"pega-wwan"

	.comm	_PEGA_WWAN,4,2                  ## @PEGA_WWAN
	.comm	_RFKILL_TYPE_WWAN,4,2           ## @RFKILL_TYPE_WWAN
	.no_dead_strip	_pega_rfkill_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pega_rfkill_init
_pega_rfkill_init:                      ; @pega_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
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x1, x0, #8
Lloh0:
	adrp	x8, _PEGA_WLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEGA_WLAN@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _RFKILL_TYPE_WLAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RFKILL_TYPE_WLAN@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pega_rfkill_setup
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
	add	x1, x19, #4
Lloh8:
	adrp	x8, _PEGA_BLUETOOTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PEGA_BLUETOOTH@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _RFKILL_TYPE_BLUETOOTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RFKILL_TYPE_BLUETOOTH@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pega_rfkill_setup
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _PEGA_WWAN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PEGA_WWAN@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _RFKILL_TYPE_WWAN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RFKILL_TYPE_WWAN@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x19
	bl	_pega_rfkill_setup
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_asus_rfkill_exit
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pega-wlan"

	.comm	_PEGA_WLAN,4,2                  ; @PEGA_WLAN
	.comm	_RFKILL_TYPE_WLAN,4,2           ; @RFKILL_TYPE_WLAN
l_.str.1:                               ; @.str.1
	.asciz	"pega-bt"

	.comm	_PEGA_BLUETOOTH,4,2             ; @PEGA_BLUETOOTH
	.comm	_RFKILL_TYPE_BLUETOOTH,4,2      ; @RFKILL_TYPE_BLUETOOTH
l_.str.2:                               ; @.str.2
	.asciz	"pega-wwan"

	.comm	_PEGA_WWAN,4,2                  ; @PEGA_WWAN
	.comm	_RFKILL_TYPE_WWAN,4,2           ; @RFKILL_TYPE_WWAN
	.no_dead_strip	_pega_rfkill_init
.subsections_via_symbols
