	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_gpio              ## -- Begin function ath5k_hw_set_gpio
	.p2align	4, 0x90
_ath5k_hw_set_gpio:                     ## @ath5k_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	_AR5K_NUM_GPIO@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_AR5K_GPIODO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ath5k_hw_reg_read
	andl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	btrl	%r15d, %eax
	orl	%eax, %ebx
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ath5k_hw_reg_write
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_NUM_GPIO,4,2              ## @AR5K_NUM_GPIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_GPIODO,4,2                ## @AR5K_GPIODO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_gpio              ; -- Begin function ath5k_hw_set_gpio
	.p2align	2
_ath5k_hw_set_gpio:                     ; @ath5k_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
Lloh0:
	adrp	x8, _AR5K_NUM_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_NUM_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x22, _AR5K_GPIODO@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AR5K_GPIODO@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ath5k_hw_reg_read
	mov	w8, #1
	lsl	w8, w8, w20
	bic	w8, w0, w8
	and	w9, w21, #0x1
	lsl	w9, w9, w20
	orr	w1, w8, w9
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_NUM_GPIO,4,2              ; @AR5K_NUM_GPIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_GPIODO,4,2                ; @AR5K_GPIODO
.subsections_via_symbols
