	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfkill_set_sw_state            ## -- Begin function rfkill_set_sw_state
	.p2align	4, 0x90
_rfkill_set_sw_state:                   ## @rfkill_set_sw_state
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_RFKILL_BLOCK_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	___rfkill_set_sw_state
	movq	_RFKILL_BLOCK_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	(%rbx), %r13d
	xorl	%r14d, %r14d
	orl	%r13d, %r15d
	setne	%r15b
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	$0, 8(%rbx)
	je	LBB0_5
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	sete	%al
	xorb	%r15b, %al
	jne	LBB0_4
## %bb.2:
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.3:
	leaq	4(%rbx), %rdi
	callq	_schedule_work
LBB0_4:
	movq	%rbx, %rdi
	callq	_rfkill_led_trigger_event
LBB0_5:
	movb	%r15b, %r14b
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RFKILL_BLOCK_SW,4,2            ## @RFKILL_BLOCK_SW
	.comm	_RFKILL_BLOCK_HW,4,2            ## @RFKILL_BLOCK_HW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rfkill_set_sw_state            ; -- Begin function rfkill_set_sw_state
	.p2align	2
_rfkill_set_sw_state:                   ; @rfkill_set_sw_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w22, [x19]
Lloh0:
	adrp	x8, _RFKILL_BLOCK_SW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFKILL_BLOCK_SW@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	___rfkill_set_sw_state
Lloh3:
	adrp	x8, _RFKILL_BLOCK_HW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RFKILL_BLOCK_HW@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh5:
	ldr	w8, [x8]
	and	w24, w8, w9
	orr	w8, w20, w24
	cmp	w8, #0
	cset	w20, ne
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.1:
	tst	w23, w22
	cset	w8, eq
	eor	w8, w8, w20
	tbnz	w8, #0, LBB0_4
; %bb.2:
	cbnz	w24, LBB0_4
; %bb.3:
	add	x0, x19, #4
	bl	_schedule_work
LBB0_4:
	mov	x0, x19
	bl	_rfkill_led_trigger_event
LBB0_5:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RFKILL_BLOCK_SW,4,2            ; @RFKILL_BLOCK_SW
	.comm	_RFKILL_BLOCK_HW,4,2            ; @RFKILL_BLOCK_HW
.subsections_via_symbols
