	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wimax_rfkill                   ## -- Begin function wimax_rfkill
	.p2align	4, 0x90
_wimax_rfkill:                          ## @wimax_rfkill
	.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, %r14d
	movq	%rdi, %r13
	callq	_wimax_dev_to_dev
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%rax, %rsi
	movq	%r13, %rcx
	movl	%r14d, %r8d
	callq	_d_fnstart
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_wimax_dev_is_ready
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	leal	-129(%r14), %eax
	cmpl	$2, %eax
	jae	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	___wimax_rf_toggle_radio
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	12(%r13), %edi
	xorl	%esi, %esi
	cmpl	$130, %r14d
	sete	%sil
	callq	_rfkill_set_sw_state
	jmp	LBB0_6
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	cmpl	$128, %r14d
	jne	LBB0_7
LBB0_6:
	movl	(%r13), %ebx
	addl	%ebx, %ebx
	orl	4(%r13), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_unlock
	leaq	L_.str.1(%rip), %rdx
	movl	$3, %edi
	movq	%r15, %rsi
	movq	%r13, %rcx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_d_fnend
	movl	%ebx, %eax
	addq	$8, %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 state %u)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"(wimax_dev %p state %u) = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wimax_rfkill                   ; -- Begin function wimax_rfkill
	.p2align	2
_wimax_rfkill:                          ; @wimax_rfkill
	.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
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x20
	bl	_wimax_dev_is_ready
	tbnz	w0, #31, LBB0_4
; %bb.1:
	sub	w8, w19, #129
	cmp	w8, #2
	b.hs	LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	___wimax_rf_toggle_radio
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	w0, [x20, #12]
	cmp	w19, #130
	cset	w1, eq
	bl	_rfkill_set_sw_state
	b	LBB0_6
LBB0_4:
	mov	x23, x0
	b	LBB0_8
LBB0_5:
	cmp	w19, #128
	b.ne	LBB0_7
LBB0_6:
	ldp	w8, w9, [x20]
	orr	w23, w9, w8, lsl #1
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x22
	bl	_mutex_unlock
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(wimax_dev %p state %u)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"(wimax_dev %p state %u) = %d\n"

.subsections_via_symbols
