	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunxi_pinctrl_irq_of_xlate
_sunxi_pinctrl_irq_of_xlate:            ## @sunxi_pinctrl_irq_of_xlate
	.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
	cmpl	$2, %ecx
	jbe	LBB0_1
## %bb.2:
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rdx, %rbx
	movq	(%rdi), %rdi
	movq	_PINS_PER_BANK@GOTPCREL(%rip), %r12
	movl	(%rdx), %esi
	imull	(%r12), %esi
	movq	(%rdi), %rax
	addl	(%rax), %esi
	addl	4(%rdx), %esi
	leaq	L_.str(%rip), %rdx
	callq	_sunxi_pinctrl_desc_find_function_by_pin
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movslq	(%rax), %rcx
	movslq	(%r12), %rdx
	imulq	%rcx, %rdx
	movslq	4(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, (%r15)
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PINS_PER_BANK,4,2              ## @PINS_PER_BANK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq"

	.no_dead_strip	_sunxi_pinctrl_irq_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunxi_pinctrl_irq_of_xlate
_sunxi_pinctrl_irq_of_xlate:            ; @sunxi_pinctrl_irq_of_xlate
	.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
	cmp	w3, #2
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x2
	ldr	x0, [x0]
Lloh0:
	adrp	x22, _PINS_PER_BANK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PINS_PER_BANK@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	x9, [x0]
	ldr	w9, [x9]
	ldp	w10, w11, [x2]
	madd	w8, w10, w8, w9
	add	w1, w8, w11
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_sunxi_pinctrl_desc_find_function_by_pin
	cbz	x0, LBB0_3
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	ldrsw	x9, [x22]
	ldpsw	x10, x8, [x8]
	madd	x8, x9, x10, x8
	str	x8, [x20]
	ldr	w8, [x21, #8]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PINS_PER_BANK,4,2              ; @PINS_PER_BANK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq"

	.no_dead_strip	_sunxi_pinctrl_irq_of_xlate
.subsections_via_symbols
