	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9550_hw_get_modes_txgain_index
_ar9550_hw_get_modes_txgain_index:      ## @ar9550_hw_get_modes_txgain_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_IS_CHAN_2GHZ
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_IS_CHAN_HT40
	xorl	%ebx, %ebx
	cmpq	$1, %rax
	adcl	$7, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	(%r14), %eax
	xorl	%ecx, %ecx
	cmpl	$5601, %eax                     ## imm = 0x15E1
	setge	%cl
	cmpl	$5351, %eax                     ## imm = 0x14E7
	leal	3(%rcx,%rcx), %eax
	movl	$1, %ebx
	cmovgel	%eax, %ebx
	movq	%r14, %rdi
	callq	_IS_CHAN_HT40
	cmpq	$1, %rax
	sbbl	$-1, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ar9550_hw_get_modes_txgain_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9550_hw_get_modes_txgain_index
_ar9550_hw_get_modes_txgain_index:      ; @ar9550_hw_get_modes_txgain_index
	.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, x1
	mov	x0, x1
	bl	_IS_CHAN_2GHZ
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IS_CHAN_HT40
	cmp	x0, #0
	mov	w8, #7
	cinc	w0, w8, eq
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
	mov	w9, #5601
	mov	w10, #5
	mov	w11, #3
	cmp	w8, w9
	csel	w9, w11, w10, lt
	mov	w10, #5351
	cmp	w8, w10
	csinc	w20, w9, wzr, ge
	mov	x0, x19
	bl	_IS_CHAN_HT40
	cmp	x0, #0
	cinc	w0, w20, ne
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ar9550_hw_get_modes_txgain_index
.subsections_via_symbols
