	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_7322_mod
_gpio_7322_mod:                         ## @gpio_7322_mod
	.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	%rdi, %r14
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r15d
	andl	%ecx, %ebx
	movq	(%r14), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irqsave
	movq	_EXTCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GPIOOe@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_SYM_LSB
	movl	%r12d, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	movq	(%r14), %rax
	andl	%edx, (%rax)
	movq	_EXTCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_SYM_LSB
	movl	%eax, %ecx
	shll	%cl, %ebx
	movq	(%r14), %rax
	orl	(%rax), %ebx
	movl	%ebx, (%rax)
	movl	4(%rax), %eax
	xorl	%eax, %r15d
	andl	%r12d, %r15d
	xorl	%eax, %r15d
	movq	_kr_extctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_qib_write_kreg
	movq	_kr_gpio_out@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_qib_write_kreg
	movq	(%r14), %rdi
	movl	%r15d, 4(%rdi)
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
LBB0_2:
	movq	_kr_extstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qib_read_kreg64
	movq	_EXTStatus@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_GPIOIn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SYM_FIELD                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTCtrl,4,2                    ## @EXTCtrl
	.comm	_GPIOOe,4,2                     ## @GPIOOe
	.comm	_kr_extctrl,4,2                 ## @kr_extctrl
	.comm	_kr_gpio_out,4,2                ## @kr_gpio_out
	.comm	_kr_extstatus,4,2               ## @kr_extstatus
	.comm	_EXTStatus,4,2                  ## @EXTStatus
	.comm	_GPIOIn,4,2                     ## @GPIOIn
	.no_dead_strip	_gpio_7322_mod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_7322_mod
_gpio_7322_mod:                         ; @gpio_7322_mod
	.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	x19, x0
	cbz	w3, LBB0_2
; %bb.1:
	mov	x20, x3
	and	w21, w3, w2
	and	w22, w3, w1
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x23, _EXTCtrl@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EXTCtrl@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x24, _GPIOOe@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GPIOOe@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_SYM_LSB
	lsl	w8, w20, w0
	ldr	x9, [x19]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_SYM_LSB
	lsl	w8, w21, w0
	ldr	x9, [x19]
	ldp	w10, w11, [x9]
	orr	w2, w10, w8
	str	w2, [x9]
	bic	w8, w11, w20
	orr	w20, w8, w22
Lloh4:
	adrp	x8, _kr_extctrl@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kr_extctrl@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
Lloh7:
	adrp	x8, _kr_gpio_out@GOTPAGE
Lloh8:
	ldr	x8, [x8, _kr_gpio_out@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_qib_write_kreg
	ldr	x8, [x19]
	str	w20, [x8, #4]
	add	x0, x8, #8
	bl	_spin_unlock_irqrestore
LBB0_2:
Lloh10:
	adrp	x8, _kr_extstatus@GOTPAGE
Lloh11:
	ldr	x8, [x8, _kr_extstatus@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_read_kreg64
Lloh13:
	adrp	x8, _EXTStatus@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXTStatus@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _GPIOIn@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GPIOIn@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	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	_SYM_FIELD
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTCtrl,4,2                    ; @EXTCtrl
	.comm	_GPIOOe,4,2                     ; @GPIOOe
	.comm	_kr_extctrl,4,2                 ; @kr_extctrl
	.comm	_kr_gpio_out,4,2                ; @kr_gpio_out
	.comm	_kr_extstatus,4,2               ; @kr_extstatus
	.comm	_EXTStatus,4,2                  ; @EXTStatus
	.comm	_GPIOIn,4,2                     ; @GPIOIn
	.no_dead_strip	_gpio_7322_mod
.subsections_via_symbols
