	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_set_antenna
_ath5k_set_antenna:                     ## @ath5k_set_antenna
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.1:
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.2:
	movq	_AR5K_ANTMODE_FIXED_A@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	cmpl	$2, %esi
	jne	LBB0_7
## %bb.5:
	cmpl	$2, %edx
	jne	LBB0_7
## %bb.6:
	movq	_AR5K_ANTMODE_FIXED_B@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	andl	%edx, %esi
	notl	%esi
	testb	$3, %sil
	jne	LBB0_9
## %bb.8:
	movq	_AR5K_ANTMODE_DEFAULT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_ath5k_hw_set_antenna_mode
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_ANTMODE_FIXED_A,4,2       ## @AR5K_ANTMODE_FIXED_A
	.comm	_AR5K_ANTMODE_FIXED_B,4,2       ## @AR5K_ANTMODE_FIXED_B
	.comm	_AR5K_ANTMODE_DEFAULT,4,2       ## @AR5K_ANTMODE_DEFAULT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ath5k_set_antenna
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_set_antenna
_ath5k_set_antenna:                     ; @ath5k_set_antenna
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
	cmp	w1, #1
	b.ne	LBB0_3
; %bb.1:
	cmp	w2, #1
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _AR5K_ANTMODE_FIXED_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_ANTMODE_FIXED_A@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	cmp	w1, #2
	b.ne	LBB0_6
; %bb.4:
	cmp	w2, #2
	b.ne	LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _AR5K_ANTMODE_FIXED_B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_ANTMODE_FIXED_B@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	and	w8, w1, w2
	mvn	w8, w8
	tst	w8, #0x3
	b.ne	LBB0_9
; %bb.7:
Lloh4:
	adrp	x8, _AR5K_ANTMODE_DEFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR5K_ANTMODE_DEFAULT@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	bl	_ath5k_hw_set_antenna_mode
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_ANTMODE_FIXED_A,4,2       ; @AR5K_ANTMODE_FIXED_A
	.comm	_AR5K_ANTMODE_FIXED_B,4,2       ; @AR5K_ANTMODE_FIXED_B
	.comm	_AR5K_ANTMODE_DEFAULT,4,2       ; @AR5K_ANTMODE_DEFAULT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ath5k_set_antenna
.subsections_via_symbols
