	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_gpio_intr         ## -- Begin function ath5k_hw_set_gpio_intr
	.p2align	4, 0x90
_ath5k_hw_set_gpio_intr:                ## @ath5k_hw_set_gpio_intr
	.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
	movq	_AR5K_NUM_GPIO@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_4
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_AR5K_GPIOCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ath5k_hw_reg_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_AR5K_GPIOCR_INT_SEL
	movl	%eax, %r13d
	movq	_AR5K_GPIOCR_INT_SELH@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_AR5K_GPIOCR_INT_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	%r12d, %edi
	callq	_AR5K_GPIOCR_OUT
	movl	%eax, %ebx
	orl	%r13d, %ebx
	notl	%ebx
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_AR5K_GPIOCR_INT_SEL
	movq	_AR5K_GPIOCR_INT_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	movq	_AR5K_GPIOCR_INT_SELH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_3:
	orl	%ecx, %eax
	orl	%eax, %ebx
	movq	_AR5K_GPIOCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ath5k_hw_reg_write
	movq	_AR5K_IMR_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	%ecx, (%r15)
	movq	_AR5K_PIMR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AR5K_REG_ENABLE_BITS           ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_NUM_GPIO,4,2              ## @AR5K_NUM_GPIO
	.comm	_AR5K_GPIOCR,4,2                ## @AR5K_GPIOCR
	.comm	_AR5K_GPIOCR_INT_SELH,4,2       ## @AR5K_GPIOCR_INT_SELH
	.comm	_AR5K_GPIOCR_INT_ENA,4,2        ## @AR5K_GPIOCR_INT_ENA
	.comm	_AR5K_IMR_GPIO,4,2              ## @AR5K_IMR_GPIO
	.comm	_AR5K_PIMR,4,2                  ## @AR5K_PIMR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_gpio_intr         ; -- Begin function ath5k_hw_set_gpio_intr
	.p2align	2
_ath5k_hw_set_gpio_intr:                ; @ath5k_hw_set_gpio_intr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _AR5K_NUM_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_NUM_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_2
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh3:
	adrp	x23, _AR5K_GPIOCR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AR5K_GPIOCR@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ath5k_hw_reg_read
	mov	x22, x0
	mov	x0, x21
	bl	_AR5K_GPIOCR_INT_SEL
Lloh5:
	adrp	x24, _AR5K_GPIOCR_INT_SELH@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AR5K_GPIOCR_INT_SELH@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, w0
Lloh7:
	adrp	x25, _AR5K_GPIOCR_INT_ENA@GOTPAGE
Lloh8:
	ldr	x25, [x25, _AR5K_GPIOCR_INT_ENA@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w26, w8, w9
	mov	x0, x21
	bl	_AR5K_GPIOCR_OUT
	orr	w8, w26, w0
	bic	w22, w22, w8
	mov	x0, x21
	bl	_AR5K_GPIOCR_INT_SEL
	ldr	w8, [x25]
	orr	w8, w8, w0
	orr	w8, w8, w22
	ldr	w9, [x24]
	cmp	w20, #0
	csel	w9, w9, wzr, eq
	orr	w1, w8, w9
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ath5k_hw_reg_write
Lloh9:
	adrp	x8, _AR5K_IMR_GPIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_IMR_GPIO@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x19]
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _AR5K_PIMR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AR5K_PIMR@GOTPAGEOFF]
	str	w9, [x19]
Lloh13:
	ldr	w1, [x10]
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AR5K_REG_ENABLE_BITS
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_NUM_GPIO,4,2              ; @AR5K_NUM_GPIO
	.comm	_AR5K_GPIOCR,4,2                ; @AR5K_GPIOCR
	.comm	_AR5K_GPIOCR_INT_SELH,4,2       ; @AR5K_GPIOCR_INT_SELH
	.comm	_AR5K_GPIOCR_INT_ENA,4,2        ; @AR5K_GPIOCR_INT_ENA
	.comm	_AR5K_IMR_GPIO,4,2              ; @AR5K_IMR_GPIO
	.comm	_AR5K_PIMR,4,2                  ; @AR5K_PIMR
.subsections_via_symbols
