	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wimax_rfkill_set_radio_block
_wimax_rfkill_set_radio_block:          ## @wimax_rfkill_set_radio_block
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_wimax_dev_to_dev
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	callq	_d_fnstart
	movq	_WIMAX_RF_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_WIMAX_RF_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	___WIMAX_ST_QUIESCING@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	testl	%r14d, %r14d
	cmovel	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	___wimax_rf_toggle_radio
	movl	%eax, %r13d
LBB0_2:
	movq	%r12, %rdi
	callq	_mutex_unlock
	leaq	L_.str.1(%rip), %rdx
	movl	$3, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	_d_fnend
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(wimax_dev %p blocked %u)\n"

	.comm	_WIMAX_RF_ON,4,2                ## @WIMAX_RF_ON
	.comm	_WIMAX_RF_OFF,4,2               ## @WIMAX_RF_OFF
	.comm	___WIMAX_ST_QUIESCING,8,3       ## @__WIMAX_ST_QUIESCING
L_.str.1:                               ## @.str.1
	.asciz	"(wimax_dev %p blocked %u) = %d\n"

	.no_dead_strip	_wimax_rfkill_set_radio_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wimax_rfkill_set_radio_block
_wimax_rfkill_set_radio_block:          ; @wimax_rfkill_set_radio_block
	.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	x19, x1
	mov	x20, x0
	bl	_wimax_dev_to_dev
	mov	x21, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x21
	mov	x3, x20
	mov	x4, x19
	bl	_d_fnstart
Lloh2:
	adrp	x8, _WIMAX_RF_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WIMAX_RF_ON@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _WIMAX_RF_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WIMAX_RF_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh8:
	adrp	x9, ___WIMAX_ST_QUIESCING@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___WIMAX_ST_QUIESCING@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	cmp	w19, #0
	csel	w1, w23, w24, eq
	mov	x0, x20
	bl	___wimax_rf_toggle_radio
	mov	x23, x0
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	mov	x0, x22
	bl	_mutex_unlock
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x1, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x23
	bl	_d_fnend
	mov	x0, x23
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(wimax_dev %p blocked %u)\n"

	.comm	_WIMAX_RF_ON,4,2                ; @WIMAX_RF_ON
	.comm	_WIMAX_RF_OFF,4,2               ; @WIMAX_RF_OFF
	.comm	___WIMAX_ST_QUIESCING,8,3       ; @__WIMAX_ST_QUIESCING
l_.str.1:                               ; @.str.1
	.asciz	"(wimax_dev %p blocked %u) = %d\n"

	.no_dead_strip	_wimax_rfkill_set_radio_block
.subsections_via_symbols
