	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wimax_rf_toggle_radio
___wimax_rf_toggle_radio:               ## @__wimax_rf_toggle_radio
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_wimax_dev_to_dev
	movq	%rax, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_might_sleep
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%r15, %rsi
	movq	%r12, %rcx
	movl	%r14d, %r8d
	callq	_d_fnstart
	cmpl	%r14d, (%r12)
	je	LBB0_10
## %bb.1:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	*%rax
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jns	LBB0_6
	jmp	LBB0_10
LBB0_3:
	movq	_WIMAX_RF_OFF@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	js	LBB0_10
LBB0_6:
	movl	%r14d, (%r12)
	movq	_WIMAX_RF_ON@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_WIMAX_ST_READY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_WIMAX_ST_RADIO_OFF@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	___wimax_state_change
	xorl	%ebx, %ebx
LBB0_10:
	leaq	L_.str.1(%rip), %rdx
	movl	$3, %edi
	movq	%r15, %rsi
	movq	%r12, %rcx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_d_fnend
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	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	_WIMAX_RF_OFF,4,2               ## @WIMAX_RF_OFF
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_WIMAX_RF_ON,4,2                ## @WIMAX_RF_ON
	.comm	_WIMAX_ST_READY,4,2             ## @WIMAX_ST_READY
	.comm	_WIMAX_ST_RADIO_OFF,4,2         ## @WIMAX_ST_RADIO_OFF
L_.str.1:                               ## @.str.1
	.asciz	"(wimax_dev %p state %u) = %d\n"

	.no_dead_strip	___wimax_rf_toggle_radio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wimax_rf_toggle_radio
___wimax_rf_toggle_radio:               ; @__wimax_rf_toggle_radio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	bl	_wimax_dev_to_dev
	mov	x21, x0
	bl	_might_sleep
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
	ldr	w8, [x20]
	cmp	w8, w19
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x22, x0
	tbz	w22, #31, LBB0_5
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _WIMAX_RF_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WIMAX_RF_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	tbnz	w22, #31, LBB0_7
LBB0_5:
	str	w19, [x20]
Lloh8:
	adrp	x8, _WIMAX_RF_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WIMAX_RF_ON@GOTPAGEOFF]
Lloh10:
	adrp	x9, _WIMAX_ST_READY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WIMAX_ST_READY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x10, _WIMAX_ST_RADIO_OFF@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WIMAX_ST_RADIO_OFF@GOTPAGEOFF]
	cmp	w8, w19
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	___wimax_state_change
LBB0_6:
	mov	w22, #0
LBB0_7:
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #3
	mov	x1, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x22
	bl	_d_fnend
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(wimax_dev %p state %u)\n"

	.comm	_WIMAX_RF_OFF,4,2               ; @WIMAX_RF_OFF
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_WIMAX_RF_ON,4,2                ; @WIMAX_RF_ON
	.comm	_WIMAX_ST_READY,4,2             ; @WIMAX_ST_READY
	.comm	_WIMAX_ST_RADIO_OFF,4,2         ; @WIMAX_ST_RADIO_OFF
l_.str.1:                               ; @.str.1
	.asciz	"(wimax_dev %p state %u) = %d\n"

	.no_dead_strip	___wimax_rf_toggle_radio
.subsections_via_symbols
