	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_radio
_wlc_radio:                             ## @wlc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PARAM_MODE@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	%rdx, %rbx
	movq	_GET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_2
## %bb.1:
	movq	_interface@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WLC_GET_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_wl_ioctl
	movl	(%rbx), %ecx
	notl	%ecx
	andl	$1, %ecx
	movl	%ecx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	sete	%al
	orl	$65536, %eax                    ## imm = 0x10000
	movl	%eax, (%rbx)
	movq	_interface@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WLC_SET_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movl	$4, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wl_ioctl                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PARAM_MODE,4,2                 ## @PARAM_MODE
	.comm	_GET,4,2                        ## @GET
	.comm	_interface,4,2                  ## @interface
	.comm	_WLC_GET_RADIO,4,2              ## @WLC_GET_RADIO
	.comm	_WLC_SET_RADIO,4,2              ## @WLC_SET_RADIO
	.no_dead_strip	_wlc_radio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_radio
_wlc_radio:                             ; @wlc_radio
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
Lloh0:
	adrp	x8, _PARAM_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARAM_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _interface@GOTPAGE
Lloh7:
	ldr	x8, [x8, _interface@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _WLC_GET_RADIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLC_GET_RADIO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x19
	mov	w3, #4
	bl	_wl_ioctl
	ldr	w8, [x19]
	mvn	w8, w8
	and	w8, w8, #0x1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, eq
	orr	w8, w8, #0x10000
	str	w8, [x19]
Lloh12:
	adrp	x8, _interface@GOTPAGE
Lloh13:
	ldr	x8, [x8, _interface@GOTPAGEOFF]
Lloh14:
	adrp	x9, _WLC_SET_RADIO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WLC_SET_RADIO@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	ldr	w1, [x9]
	mov	x2, x19
	mov	w3, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wl_ioctl
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PARAM_MODE,4,2                 ; @PARAM_MODE
	.comm	_GET,4,2                        ; @GET
	.comm	_interface,4,2                  ; @interface
	.comm	_WLC_GET_RADIO,4,2              ; @WLC_GET_RADIO
	.comm	_WLC_SET_RADIO,4,2              ; @WLC_SET_RADIO
	.no_dead_strip	_wlc_radio
.subsections_via_symbols
