	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_pctrl_dt_setup_irq
_stm32_pctrl_dt_setup_irq:              ## @stm32_pctrl_dt_setup_irq
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r12), %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_SYSCFG_IRQMUX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -44(%rbp)
	jmp	LBB0_5
LBB0_3:
	movl	-44(%rbp), %edi
LBB0_5:
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	movq	_STM32_GPIO_PINS_PER_BANK@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_10
## %bb.6:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leal	-1(%rax), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %ebx
	andl	$2147483644, %ebx               ## imm = 0x7FFFFFFC
	addl	-48(%rbp), %ebx
	movl	%r15d, %r12d
	andl	$3, %r12d
	imull	%eax, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %r14d
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	callq	_dev_dbg
	shlq	$32, %r12
	orq	%r12, %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_devm_regmap_field_alloc
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movq	_STM32_GPIO_PINS_PER_BANK@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jl	LBB0_7
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_PTR_ERR
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st,syscfg"

	.comm	_SYSCFG_IRQMUX_MASK,4,2         ## @SYSCFG_IRQMUX_MASK
	.comm	_STM32_GPIO_PINS_PER_BANK,4,2   ## @STM32_GPIO_PINS_PER_BANK
L_.str.1:                               ## @.str.1
	.asciz	"irqmux%d: reg:%#x, lsb:%d, msb:%d\n"

	.no_dead_strip	_stm32_pctrl_dt_setup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_pctrl_dt_setup_irq
_stm32_pctrl_dt_setup_irq:              ; @stm32_pctrl_dt_setup_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x19, #8]
	bl	_IS_ERR
	ldr	x21, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #12
	mov	x0, x22
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_12
; %bb.3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x0, x22
	mov	w2, #2
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _SYSCFG_IRQMUX_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYSCFG_IRQMUX_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	w0, [sp, #8]
	b	LBB0_6
LBB0_5:
	ldr	w0, [sp, #8]
LBB0_6:
	bl	_fls
Lloh9:
	adrp	x8, _STM32_GPIO_PINS_PER_BANK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STM32_GPIO_PINS_PER_BANK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x22, x0
	mov	x23, #0
	sub	w24, w0, #1
                                        ; implicit-def: $x25
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	and	w9, w23, #0x7ffffffc
	add	w26, w8, w9
	and	w8, w23, #0x3
	mul	w27, w8, w22
	add	w28, w24, w27
	mov	x0, x20
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	mov	x3, x26
	mov	x4, x27
	mov	x5, x28
	bl	_dev_dbg
	bfi	x26, x27, #32, #32
	and	x8, x25, #0xffffffff00000000
	orr	x25, x8, x28
	mov	x0, x20
	mov	x1, x21
	mov	x2, x26
	mov	x3, x25
	bl	_devm_regmap_field_alloc
	ldr	x8, [x19]
	lsl	x9, x23, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
Lloh14:
	adrp	x8, _STM32_GPIO_PINS_PER_BANK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STM32_GPIO_PINS_PER_BANK@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	cmp	x23, x8
	b.lt	LBB0_8
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	ldr	x8, [x19]
	ldr	x0, [x8, x23, lsl #3]
	bl	_PTR_ERR
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st,syscfg"

	.comm	_SYSCFG_IRQMUX_MASK,4,2         ; @SYSCFG_IRQMUX_MASK
	.comm	_STM32_GPIO_PINS_PER_BANK,4,2   ; @STM32_GPIO_PINS_PER_BANK
l_.str.1:                               ; @.str.1
	.asciz	"irqmux%d: reg:%#x, lsb:%d, msb:%d\n"

	.no_dead_strip	_stm32_pctrl_dt_setup_irq
.subsections_via_symbols
