	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_rfgain_opt_init       ## -- Begin function ath5k_hw_rfgain_opt_init
	.p2align	4, 0x90
_ath5k_hw_rfgain_opt_init:              ## @ath5k_hw_rfgain_opt_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.2:
	movq	_rfgain_opt_5111@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movabsq	$150323855380, %rax             ## imm = 0x2300000014
	jmp	LBB0_3
LBB0_4:
	movq	_rfgain_opt_5112@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movabsq	$365072220180, %rax             ## imm = 0x5500000014
LBB0_3:
	movq	%rax, 8(%rdi)
	movq	_AR5K_RFGAIN_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rfgain_opt_5111,4,2            ## @rfgain_opt_5111
	.comm	_AR5K_RFGAIN_ACTIVE,8,3         ## @AR5K_RFGAIN_ACTIVE
	.comm	_rfgain_opt_5112,4,2            ## @rfgain_opt_5112
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ath5k_hw_rfgain_opt_init
lCPI0_0:
	.long	20                              ; 0x14
	.long	85                              ; 0x55
lCPI0_1:
	.long	20                              ; 0x14
	.long	35                              ; 0x23
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ath5k_hw_rfgain_opt_init
	.p2align	2
_ath5k_hw_rfgain_opt_init:              ; @ath5k_hw_rfgain_opt_init
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w9, [x0]
	cmp	w9, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #129
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #0
Lloh0:
	adrp	x9, _rfgain_opt_5111@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rfgain_opt_5111@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8, #24]
Lloh3:
	adrp	x9, lCPI0_1@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
Lloh5:
	adrp	x9, _rfgain_opt_5112@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rfgain_opt_5112@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, #24]
Lloh8:
	adrp	x9, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
LBB0_4:
	str	d0, [x8, #8]
Lloh10:
	adrp	x9, _AR5K_RFGAIN_ACTIVE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR5K_RFGAIN_ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	x9, [x8, #16]
	ret
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_rfgain_opt_5111,4,2            ; @rfgain_opt_5111
	.comm	_AR5K_RFGAIN_ACTIVE,8,3         ; @AR5K_RFGAIN_ACTIVE
	.comm	_rfgain_opt_5112,4,2            ; @rfgain_opt_5112
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
