	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at76_set_radio
_at76_set_radio:                        ## @at76_set_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
	xorl	%eax, %eax
	cmpl	%esi, (%rdi)
	je	LBB0_7
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%esi, %esi
	jne	LBB0_2
## %bb.3:
	movq	_CMD_RADIO_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_CMD_RADIO_ON@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r15d
	movl	16(%rbx), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_at76_set_card_command
	movl	%eax, %r12d
	movl	$1, %eax
	testl	%r12d, %r12d
	jns	LBB0_6
## %bb.5:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_wiphy_err
	movl	%r12d, %eax
LBB0_6:
	movl	%r14d, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_RADIO_ON,4,2               ## @CMD_RADIO_ON
	.comm	_CMD_RADIO_OFF,4,2              ## @CMD_RADIO_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"at76_set_card_command(%d) failed: %d\n"

	.no_dead_strip	_at76_set_radio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at76_set_radio
_at76_set_radio:                        ; @at76_set_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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CMD_RADIO_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_RADIO_ON@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CMD_RADIO_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CMD_RADIO_OFF@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w22, [x8]
	ldr	w0, [x0, #16]
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	bl	_at76_set_card_command
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w21, #1
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_wiphy_err
LBB0_5:
	str	w19, [x20]
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_RADIO_ON,4,2               ; @CMD_RADIO_ON
	.comm	_CMD_RADIO_OFF,4,2              ; @CMD_RADIO_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"at76_set_card_command(%d) failed: %d\n"

	.no_dead_strip	_at76_set_radio
.subsections_via_symbols
