	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfkill_state_store
_rfkill_state_store:                    ## @rfkill_state_store
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_rfkill
	movq	%rax, %r15
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_strict_strtoul
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	-40(%rbp), %rax
	movq	_RFKILL_USER_STATE_SOFT_BLOCKED@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_7
## %bb.5:
	movq	_RFKILL_USER_STATE_UNBLOCKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movq	_rfkill_global_mutex@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	-40(%rbp), %rax
	xorl	%esi, %esi
	cmpq	(%rbx), %rax
	sete	%sil
	movq	%r15, %rdi
	callq	_rfkill_set_block
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_RFKILL_USER_STATE_SOFT_BLOCKED,8,3 ## @RFKILL_USER_STATE_SOFT_BLOCKED
	.comm	_RFKILL_USER_STATE_UNBLOCKED,8,3 ## @RFKILL_USER_STATE_UNBLOCKED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rfkill_global_mutex,4,2        ## @rfkill_global_mutex
	.no_dead_strip	_rfkill_state_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfkill_state_store
_rfkill_state_store:                    ; @rfkill_state_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x21, x2
	bl	_to_rfkill
	mov	x20, x0
Lloh0:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_4
; %bb.1:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	bl	_strict_strtoul
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x22, _RFKILL_USER_STATE_SOFT_BLOCKED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _RFKILL_USER_STATE_SOFT_BLOCKED@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh5:
	adrp	x10, _RFKILL_USER_STATE_UNBLOCKED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RFKILL_USER_STATE_UNBLOCKED@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x21, _rfkill_global_mutex@GOTPAGE
Lloh9:
	ldr	x21, [x21, _rfkill_global_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w1, eq
	mov	x0, x20
	bl	_rfkill_set_block
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_RFKILL_USER_STATE_SOFT_BLOCKED,8,3 ; @RFKILL_USER_STATE_SOFT_BLOCKED
	.comm	_RFKILL_USER_STATE_UNBLOCKED,8,3 ; @RFKILL_USER_STATE_UNBLOCKED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rfkill_global_mutex,4,2        ; @rfkill_global_mutex
	.no_dead_strip	_rfkill_state_store
.subsections_via_symbols
