	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_hw_write_ofdm_timings
_ath5k_hw_write_ofdm_timings:           ## @ath5k_hw_write_ofdm_timings
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_AR5K_AR5212@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_AR5K_MODE_11B@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
LBB0_2:
	callq	_BUG_ON
	movl	8(%r14), %ecx
	addl	$-128, %ecx
	movl	$-469762048, %eax               ## imm = 0xE4000000
	cmpl	$2, %ecx
	ja	LBB0_4
## %bb.3:
	movslq	%ecx, %rax
	leaq	l_switch.table.ath5k_hw_write_ofdm_timings(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_4:
	cltd
	idivl	8(%rbx)
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ilog2
                                        ## kill: def $eax killed $eax def $rax
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leal	-15(%rax), %ecx
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	addl	%r15d, %ebx
	leal	-14(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	movl	$22, %r15d
	subl	%eax, %r15d
	movq	_AR5K_PHY_TIMING_3@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_AR5K_PHY_TIMING_3_DSC_MAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_AR5K_REG_WRITE_BITS
	movl	(%r12), %esi
	movq	_AR5K_PHY_TIMING_3_DSC_EXP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_AR5K_REG_WRITE_BITS
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_AR5212,8,3                ## @AR5K_AR5212
	.comm	_AR5K_MODE_11B,8,3              ## @AR5K_MODE_11B
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_PHY_TIMING_3,4,2          ## @AR5K_PHY_TIMING_3
	.comm	_AR5K_PHY_TIMING_3_DSC_MAN,4,2  ## @AR5K_PHY_TIMING_3_DSC_MAN
	.comm	_AR5K_PHY_TIMING_3_DSC_EXP,4,2  ## @AR5K_PHY_TIMING_3_DSC_EXP
	.no_dead_strip	_ath5k_hw_write_ofdm_timings
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ath5k_hw_write_ofdm_timings
l_switch.table.ath5k_hw_write_ofdm_timings:
	.long	419430400                       ## 0x19000000
	.long	3355443200                      ## 0xc8000000
	.long	838860800                       ## 0x32000000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_hw_write_ofdm_timings
_ath5k_hw_write_ofdm_timings:           ; @ath5k_hw_write_ofdm_timings
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AR5K_AR5212@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5K_AR5212@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _AR5K_MODE_11B@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR5K_MODE_11B@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_BUG_ON
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, l_switch.table.ath5k_hw_write_ofdm_timings@PAGE
Lloh7:
	add	x9, x9, l_switch.table.ath5k_hw_write_ofdm_timings@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_6
LBB0_5:
	mov	w8, #-469762048
LBB0_6:
	ldr	w9, [x20, #8]
	sdiv	w20, w8, w9
	mov	x0, x20
	bl	_ilog2
	cmp	w20, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	sub	w8, w0, #14
	sub	w9, w0, #15
	mov	w10, #1
	lsl	w9, w10, w9
	add	w9, w9, w20
	asr	w3, w9, w8
	mov	w8, #22
	sub	w20, w8, w0
Lloh11:
	adrp	x21, _AR5K_PHY_TIMING_3@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AR5K_PHY_TIMING_3@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _AR5K_PHY_TIMING_3_DSC_MAN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR5K_PHY_TIMING_3_DSC_MAN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_AR5K_REG_WRITE_BITS
	ldr	w1, [x21]
Lloh16:
	adrp	x8, _AR5K_PHY_TIMING_3_DSC_EXP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR5K_PHY_TIMING_3_DSC_EXP@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_AR5K_REG_WRITE_BITS
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_AR5212,8,3                ; @AR5K_AR5212
	.comm	_AR5K_MODE_11B,8,3              ; @AR5K_MODE_11B
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_PHY_TIMING_3,4,2          ; @AR5K_PHY_TIMING_3
	.comm	_AR5K_PHY_TIMING_3_DSC_MAN,4,2  ; @AR5K_PHY_TIMING_3_DSC_MAN
	.comm	_AR5K_PHY_TIMING_3_DSC_EXP,4,2  ; @AR5K_PHY_TIMING_3_DSC_EXP
	.no_dead_strip	_ath5k_hw_write_ofdm_timings
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ath5k_hw_write_ofdm_timings
l_switch.table.ath5k_hw_write_ofdm_timings:
	.long	419430400                       ; 0x19000000
	.long	3355443200                      ; 0xc8000000
	.long	838860800                       ; 0x32000000

.subsections_via_symbols
