	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_gpiolib_register_bank
_st_gpiolib_register_bank:              ## @st_gpiolib_register_bank
	.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	%rdx, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r13
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_of_alias_get_id
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_2:
	movl	%ebx, %r12d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	(%rax,%rax,8), %rbx
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_devm_ioremap_resource
	movl	%eax, 36(%r13,%rbx,8)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	36(,%rbx,8), %rax
	addq	%r13, %rax
	movl	(%rax), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_4:
	leaq	(,%rbx,8), %r15
	addq	%r13, %r15
	movq	_st_gpio_template@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 16(%r15)
	movups	%xmm0, (%r15)
	movq	_ST_GPIO_PINS_PER_BANK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	%r14, %rcx
	movl	%r12d, %r14d
	imull	%r12d, %eax
	movl	%eax, (%r15)
	movl	(%rdx), %eax
	movl	%eax, 4(%r13,%rbx,8)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 24(%r13,%rbx,8)
	movq	%rcx, 16(%r13,%rbx,8)
	leaq	32(,%rbx,8), %rdi
	addq	%r13, %rdi
	callq	_spin_lock_init
	leaq	56(,%rbx,8), %rdx
	addq	%r13, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_of_property_read_string
	movq	56(%r13,%rbx,8), %rax
	movq	%rax, 8(%r13,%rbx,8)
	movl	%r14d, 40(%r13,%rbx,8)
	movq	_ST_GPIO_PINS_PER_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	imull	%r14d, %eax
	movl	%eax, 48(%r13,%rbx,8)
	movl	%eax, 44(%r13,%rbx,8)
	movl	4(%r13,%rbx,8), %eax
	movl	%eax, 52(%r13,%rbx,8)
	movq	%r15, 64(%r13,%rbx,8)
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dev_err
	jmp	LBB0_13
LBB0_6:
	movq	%r15, %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_info
	leaq	-64(%rbp), %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_irq_to_resource
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:
	movl	-64(%rbp), %r14d
	movq	_st_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_st_gpio_irqchip@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_gpiochip_set_chained_irqchip
	testl	%r14d, %r14d
	setg	%bl
LBB0_8:
	testb	%bl, %bl
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_10
## %bb.9:
	cmpq	$0, (%r15)
	jne	LBB0_10
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdx
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_13
LBB0_10:
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_st_gpio_irqchip@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_gpiochip_remove
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_info
	movl	%ebx, %r12d
LBB0_13:
	movl	%r12d, %eax
	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	"gpio"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_st_gpio_template,32,3          ## @st_gpio_template
	.comm	_ST_GPIO_PINS_PER_BANK,4,2      ## @ST_GPIO_PINS_PER_BANK
L_.str.1:                               ## @.str.1
	.asciz	"st,bank-name"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to add gpiochip(%d)!\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s bank added.\n"

	.comm	_st_gpio_irqchip,4,2            ## @st_gpio_irqchip
	.comm	_st_gpio_irq_handler,4,2        ## @st_gpio_irq_handler
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.4:                               ## @.str.4
	.asciz	"could not add irqchip\n"

L_.str.5:                               ## @.str.5
	.asciz	"No IRQ support for %pOF bank\n"

	.no_dead_strip	_st_gpiolib_register_bank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_gpiolib_register_bank
_st_gpiolib_register_bank:              ; @st_gpiolib_register_bank
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldp	x19, x24, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_of_alias_get_id
	mov	x23, x0
	add	x2, sp, #24
	mov	x0, x20
	mov	w1, #0
	bl	_of_address_to_resource
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_13
LBB0_2:
	sxtw	x25, w22
	add	x1, sp, #24
	mov	x0, x19
	bl	_devm_ioremap_resource
	mov	w8, #72
	madd	x26, x25, x8, x24
	str	w0, [x26, #36]!
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x26]
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_13
LBB0_4:
	mov	w8, #72
	smaddl	x22, w22, w8, x24
Lloh5:
	adrp	x8, _st_gpio_template@GOTPAGE
Lloh6:
	ldr	x8, [x8, _st_gpio_template@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	stp	q0, q1, [x22]
Lloh7:
	adrp	x26, _ST_GPIO_PINS_PER_BANK@GOTPAGE
Lloh8:
	ldr	x26, [x26, _ST_GPIO_PINS_PER_BANK@GOTPAGEOFF]
	ldr	w8, [x26]
	mul	w8, w8, w23
	str	w8, [x22]
	ldr	w8, [x26]
	mov	w9, #72
	madd	x24, x25, x9, x24
	str	w8, [x24, #4]
	stp	x19, x20, [x24, #16]
	add	x0, x24, #32
	bl	_spin_lock_init
	add	x25, x24, #56
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	bl	_of_property_read_string
	ldr	x8, [x24, #56]
	str	x8, [x24, #8]
	str	w23, [x24, #40]
	ldr	w8, [x26]
	mul	w8, w8, w23
	stp	w8, w8, [x24, #44]
	ldr	w8, [x24, #4]
	str	w8, [x24, #52]
	str	x22, [x24, #64]
	mov	x0, x22
	mov	x1, x22
	bl	_gpiochip_add_data
	cbz	w0, LBB0_6
; %bb.5:
	mov	x24, x0
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_err
	b	LBB0_13
LBB0_6:
	ldr	x8, [x25]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	add	x2, sp, #16
	mov	x0, x20
	mov	w1, #0
	bl	_of_irq_to_resource
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.7:
	ldr	w23, [sp, #16]
Lloh15:
	adrp	x8, _st_gpio_irq_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _st_gpio_irq_handler@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x1, _st_gpio_irqchip@GOTPAGE
Lloh19:
	ldr	x1, [x1, _st_gpio_irqchip@GOTPAGEOFF]
	mov	x0, x22
	mov	x2, x23
	bl	_gpiochip_set_chained_irqchip
	cmp	w23, #0
	cset	w8, gt
	tbz	w8, #0, LBB0_9
	b	LBB0_11
LBB0_8:
	mov	w8, #0
	tbnz	w8, #0, LBB0_11
LBB0_9:
	ldr	x8, [x21]
	cbnz	x8, LBB0_11
; %bb.10:
	str	x20, [sp]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w24, #0
	b	LBB0_13
LBB0_11:
Lloh22:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh23:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
Lloh25:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
Lloh28:
	adrp	x1, _st_gpio_irqchip@GOTPAGE
Lloh29:
	ldr	x1, [x1, _st_gpio_irqchip@GOTPAGEOFF]
	mov	x0, x22
	mov	w2, #0
	bl	_gpiochip_irqchip_add
	mov	x24, x0
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_gpiochip_remove
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_13:
	mov	x0, x24
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_st_gpio_template,32,3          ; @st_gpio_template
	.comm	_ST_GPIO_PINS_PER_BANK,4,2      ; @ST_GPIO_PINS_PER_BANK
l_.str.1:                               ; @.str.1
	.asciz	"st,bank-name"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to add gpiochip(%d)!\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s bank added.\n"

	.comm	_st_gpio_irqchip,4,2            ; @st_gpio_irqchip
	.comm	_st_gpio_irq_handler,4,2        ; @st_gpio_irq_handler
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.4:                               ; @.str.4
	.asciz	"could not add irqchip\n"

l_.str.5:                               ; @.str.5
	.asciz	"No IRQ support for %pOF bank\n"

	.no_dead_strip	_st_gpiolib_register_bank
.subsections_via_symbols
