	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_set_gpio              ## -- Begin function ath9k_hw_set_gpio
	.p2align	4, 0x90
_ath9k_hw_set_gpio:                     ## @ath9k_hw_set_gpio
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	%rsi, (%rbx)
	setle	%dil
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_AR_DEVID_7010
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_AR_SREV_9271
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	testq	%r15, %r15
	sete	%al
LBB0_4:
	movzbl	%al, %r15d
	movq	%r14, %rdi
	callq	_BIT
	testl	%eax, 8(%rbx)
	je	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_AR_DEVID_7010
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_AR_GPIO_IN_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_BIT
	testl	%eax, 12(%rbx)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpio_set_value                 ## TAILCALL
LBB0_6:
	movq	_AR7010_GPIO_OUT@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %r12
	movl	%r14d, %ecx
	shlq	%cl, %r15
	movq	%r14, %rdi
	callq	_BIT
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW                        ## TAILCALL
LBB0_3:
	testq	%r15, %r15
	setne	%al
	jmp	LBB0_4
LBB0_11:
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR7010_GPIO_OUT,8,3            ## @AR7010_GPIO_OUT
	.comm	_AR_GPIO_IN_OUT,8,3             ## @AR_GPIO_IN_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_set_gpio              ; -- Begin function ath9k_hw_set_gpio
	.p2align	2
_ath9k_hw_set_gpio:                     ; @ath9k_hw_set_gpio
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, x1
	cset	w0, le
	bl	_WARN_ON
	mov	x0, x20
	bl	_AR_DEVID_7010
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_AR_SREV_9271
	cbz	x0, LBB0_7
LBB0_2:
	cmp	x21, #0
	cset	w8, eq
LBB0_3:
	mov	w21, w8
	mov	x0, x19
	bl	_BIT
	ldr	w8, [x20, #8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_AR_DEVID_7010
Lloh0:
	adrp	x8, _AR7010_GPIO_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR7010_GPIO_OUT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AR_GPIO_IN_OUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_GPIO_IN_OUT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x22, [x8]
	lsl	x21, x21, x19
	mov	x0, x19
	bl	_BIT
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	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
	b	_REG_RMW
LBB0_5:
	mov	x0, x19
	bl	_BIT
	ldr	w8, [x20, #12]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	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
	b	_gpio_set_value
LBB0_7:
	cmp	x21, #0
	cset	w8, ne
	b	LBB0_3
LBB0_8:
	mov	w0, #1
	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
	b	_WARN_ON
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR7010_GPIO_OUT,8,3            ; @AR7010_GPIO_OUT
	.comm	_AR_GPIO_IN_OUT,8,3             ; @AR_GPIO_IN_OUT
.subsections_via_symbols
