	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_gpio_cfg_output_mux
_ath9k_hw_gpio_cfg_output_mux:          ## @ath9k_hw_gpio_cfg_output_mux
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	_AR_GPIO_OUTPUT_MUX1@GOTPCREL(%rip), %r13
	movq	%r13, %rax
	cmpl	$6, %esi
	jl	LBB0_2
## %bb.1:
	movq	_AR_GPIO_OUTPUT_MUX2@GOTPCREL(%rip), %rax
LBB0_2:
	cmpl	$12, %esi
	jl	LBB0_4
## %bb.3:
	movq	_AR_GPIO_OUTPUT_MUX3@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r15d
	movslq	%esi, %rax
	imulq	$715827883, %rax, %rax          ## imm = 0x2AAAAAAB
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %esi
	leal	(%rsi,%rsi,4), %ebx
	movq	%r14, %rdi
	callq	_AR_SREV_9280_20_OR_LATER
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	cmpl	(%r13), %r15d
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_REG_READ
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edx
	andl	$992, %edx                      ## imm = 0x3E0
	movl	$31, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	andl	$-497, %eax                     ## imm = 0xFE0F
	orl	%eax, %edx
	notl	%esi
	andl	%edx, %esi
	shll	%cl, %r12d
	orl	%esi, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
LBB0_6:
	movl	%ebx, %ecx
	shll	%cl, %r12d
	movl	$31, %eax
	shll	%cl, %eax
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_GPIO_OUTPUT_MUX3,4,2        ## @AR_GPIO_OUTPUT_MUX3
	.comm	_AR_GPIO_OUTPUT_MUX2,4,2        ## @AR_GPIO_OUTPUT_MUX2
	.comm	_AR_GPIO_OUTPUT_MUX1,4,2        ## @AR_GPIO_OUTPUT_MUX1
	.no_dead_strip	_ath9k_hw_gpio_cfg_output_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_gpio_cfg_output_mux
_ath9k_hw_gpio_cfg_output_mux:          ; @ath9k_hw_gpio_cfg_output_mux
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _AR_GPIO_OUTPUT_MUX3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_GPIO_OUTPUT_MUX3@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AR_GPIO_OUTPUT_MUX2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_GPIO_OUTPUT_MUX2@GOTPAGEOFF]
Lloh4:
	adrp	x23, _AR_GPIO_OUTPUT_MUX1@GOTPAGE
Lloh5:
	ldr	x23, [x23, _AR_GPIO_OUTPUT_MUX1@GOTPAGEOFF]
	cmp	w1, #5
	csel	x9, x9, x23, gt
	cmp	w1, #11
	csel	x8, x8, x9, gt
	ldr	w21, [x8]
	mov	w8, #43691
	movk	w8, #10922, lsl #16
	smull	x8, w1, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	mov	w9, #6
	msub	w8, w8, w9, w1
	add	w22, w8, w8, lsl #2
	bl	_AR_SREV_9280_20_OR_LATER
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_REG_READ
	lsl	w8, w0, #1
	and	w8, w8, #0x3e0
	and	w9, w0, #0xfffffe0f
	orr	w8, w8, w9
	mov	w9, #31
	lsl	w9, w9, w22
	bic	w8, w8, w9
	lsl	w9, w20, w22
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_REG_WRITE
LBB0_3:
	lsl	w2, w20, w22
	mov	w8, #31
	lsl	w3, w8, w22
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_REG_RMW
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_GPIO_OUTPUT_MUX3,4,2        ; @AR_GPIO_OUTPUT_MUX3
	.comm	_AR_GPIO_OUTPUT_MUX2,4,2        ; @AR_GPIO_OUTPUT_MUX2
	.comm	_AR_GPIO_OUTPUT_MUX1,4,2        ; @AR_GPIO_OUTPUT_MUX1
	.no_dead_strip	_ath9k_hw_gpio_cfg_output_mux
.subsections_via_symbols
