	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_gpio_probe
_uniphier_gpio_probe:                   ## @uniphier_gpio_probe
	.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, %r13
	movl	(%rdi), %edi
	callq	_of_irq_find_parent
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_irq_find_host
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movl	-44(%rbp), %edi
	callq	_uniphier_gpio_get_nbanks
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edx
	addl	$3, %edx
	movq	_saved_vals@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 108(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	108(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	leaq	104(%r15), %rdi
	callq	_spin_lock_init
	movq	%r15, %r12
	addq	$40, %r12
	movq	%r13, %rdi
	callq	_dev_name
	movq	%rax, 96(%r15)
	movq	%r13, 88(%r15)
	movq	_gpiochip_generic_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r15)
	movq	_gpiochip_generic_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r15)
	movq	_uniphier_gpio_get_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	movq	_uniphier_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r15)
	movq	_uniphier_gpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r15)
	movq	_uniphier_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r15)
	movq	_uniphier_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_uniphier_gpio_set_multiple@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_uniphier_gpio_to_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movl	$-1, 40(%r15)
	movl	-44(%rbp), %eax
	movl	%eax, 44(%r15)
	movq	%r13, %rdi
	callq	_dev_name
	movq	%rax, 32(%r15)
	movq	_uniphier_gpio_irq_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_uniphier_gpio_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_irq_chip_eoi_parent@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_irq_chip_set_affinity_parent@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_uniphier_gpio_irq_set_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_uniphier_gpio_hw_init
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_devm_gpiochip_add_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_UNIPHIER_GPIO_IRQ_MAX_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %edi
	callq	_of_node_to_fwnode
	movq	_uniphier_gpio_irq_domain_ops@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movq	%r15, %r9
	callq	_irq_domain_create_hierarchy
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ngpios"

	.comm	_saved_vals,4,2                 ## @saved_vals
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gpiochip_generic_request,4,2   ## @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ## @gpiochip_generic_free
	.comm	_uniphier_gpio_get_direction,4,2 ## @uniphier_gpio_get_direction
	.comm	_uniphier_gpio_direction_input,4,2 ## @uniphier_gpio_direction_input
	.comm	_uniphier_gpio_direction_output,4,2 ## @uniphier_gpio_direction_output
	.comm	_uniphier_gpio_get,4,2          ## @uniphier_gpio_get
	.comm	_uniphier_gpio_set,4,2          ## @uniphier_gpio_set
	.comm	_uniphier_gpio_set_multiple,4,2 ## @uniphier_gpio_set_multiple
	.comm	_uniphier_gpio_to_irq,4,2       ## @uniphier_gpio_to_irq
	.comm	_uniphier_gpio_irq_mask,4,2     ## @uniphier_gpio_irq_mask
	.comm	_uniphier_gpio_irq_unmask,4,2   ## @uniphier_gpio_irq_unmask
	.comm	_irq_chip_eoi_parent,4,2        ## @irq_chip_eoi_parent
	.comm	_irq_chip_set_affinity_parent,4,2 ## @irq_chip_set_affinity_parent
	.comm	_uniphier_gpio_irq_set_type,4,2 ## @uniphier_gpio_irq_set_type
	.comm	_UNIPHIER_GPIO_IRQ_MAX_NUM,4,2  ## @UNIPHIER_GPIO_IRQ_MAX_NUM
	.comm	_uniphier_gpio_irq_domain_ops,4,2 ## @uniphier_gpio_irq_domain_ops
	.no_dead_strip	_uniphier_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_gpio_probe
_uniphier_gpio_probe:                   ; @uniphier_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_of_irq_find_parent
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	bl	_irq_find_host
	mov	x20, x0
	mov	x0, x21
	bl	_of_node_put
	cbz	x20, LBB0_7
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbnz	w0, LBB0_13
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_uniphier_gpio_get_nbanks
	lsl	w8, w0, #1
	add	w2, w8, #3
Lloh2:
	adrp	x8, _saved_vals@GOTPAGE
Lloh3:
	ldr	x8, [x8, _saved_vals@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_struct_size
	mov	x1, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x21, #108]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x21, #108]
	bl	_PTR_ERR
	b	LBB0_13
LBB0_6:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh10:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	add	x0, x21, #104
	bl	_spin_lock_init
	mov	x0, x19
	bl	_dev_name
	stp	x19, x0, [x21, #88]
Lloh12:
	adrp	x8, _gpiochip_generic_request@GOTPAGE
Lloh13:
	ldr	x8, [x8, _gpiochip_generic_request@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _gpiochip_generic_free@GOTPAGE
Lloh16:
	ldr	x9, [x9, _gpiochip_generic_free@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #76]
Lloh18:
	adrp	x8, _uniphier_gpio_get_direction@GOTPAGE
Lloh19:
	ldr	x8, [x8, _uniphier_gpio_get_direction@GOTPAGEOFF]
Lloh20:
	adrp	x9, _uniphier_gpio_direction_input@GOTPAGE
Lloh21:
	ldr	x9, [x9, _uniphier_gpio_direction_input@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #68]
Lloh24:
	adrp	x8, _uniphier_gpio_direction_output@GOTPAGE
Lloh25:
	ldr	x8, [x8, _uniphier_gpio_direction_output@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _uniphier_gpio_get@GOTPAGE
Lloh28:
	ldr	x9, [x9, _uniphier_gpio_get@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #60]
Lloh30:
	adrp	x8, _uniphier_gpio_set@GOTPAGE
Lloh31:
	ldr	x8, [x8, _uniphier_gpio_set@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _uniphier_gpio_set_multiple@GOTPAGE
Lloh34:
	ldr	x9, [x9, _uniphier_gpio_set_multiple@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #52]
Lloh36:
	adrp	x8, _uniphier_gpio_to_irq@GOTPAGE
Lloh37:
	ldr	x8, [x8, _uniphier_gpio_to_irq@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	mov	w9, #-1
	mov	x22, x21
	str	w9, [x22, #40]!
	ldr	w9, [sp, #12]
	stp	w9, w8, [x21, #44]
	mov	x0, x19
	bl	_dev_name
	str	x0, [x21, #32]
Lloh39:
	adrp	x8, _uniphier_gpio_irq_mask@GOTPAGE
Lloh40:
	ldr	x8, [x8, _uniphier_gpio_irq_mask@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x21, #24]
Lloh42:
	adrp	x8, _uniphier_gpio_irq_unmask@GOTPAGE
Lloh43:
	ldr	x8, [x8, _uniphier_gpio_irq_unmask@GOTPAGEOFF]
Lloh44:
	adrp	x9, _irq_chip_eoi_parent@GOTPAGE
Lloh45:
	ldr	x9, [x9, _irq_chip_eoi_parent@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #16]
Lloh48:
	adrp	x8, _irq_chip_set_affinity_parent@GOTPAGE
Lloh49:
	ldr	x8, [x8, _irq_chip_set_affinity_parent@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _uniphier_gpio_irq_set_type@GOTPAGE
Lloh52:
	ldr	x9, [x9, _uniphier_gpio_irq_set_type@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
	mov	x0, x21
	bl	_uniphier_gpio_hw_init
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_devm_gpiochip_add_data
	cbnz	w0, LBB0_13
; %bb.9:
Lloh54:
	adrp	x8, _UNIPHIER_GPIO_IRQ_MAX_NUM@GOTPAGE
Lloh55:
	ldr	x8, [x8, _UNIPHIER_GPIO_IRQ_MAX_NUM@GOTPAGEOFF]
Lloh56:
	ldr	w22, [x8]
	ldr	w0, [x19]
	bl	_of_node_to_fwnode
	mov	x3, x0
Lloh57:
	adrp	x4, _uniphier_gpio_irq_domain_ops@GOTPAGE
Lloh58:
	ldr	x4, [x4, _uniphier_gpio_irq_domain_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	mov	x5, x21
	bl	_irq_domain_create_hierarchy
	str	w0, [x21]
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh59:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ngpios"

	.comm	_saved_vals,4,2                 ; @saved_vals
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gpiochip_generic_request,4,2   ; @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ; @gpiochip_generic_free
	.comm	_uniphier_gpio_get_direction,4,2 ; @uniphier_gpio_get_direction
	.comm	_uniphier_gpio_direction_input,4,2 ; @uniphier_gpio_direction_input
	.comm	_uniphier_gpio_direction_output,4,2 ; @uniphier_gpio_direction_output
	.comm	_uniphier_gpio_get,4,2          ; @uniphier_gpio_get
	.comm	_uniphier_gpio_set,4,2          ; @uniphier_gpio_set
	.comm	_uniphier_gpio_set_multiple,4,2 ; @uniphier_gpio_set_multiple
	.comm	_uniphier_gpio_to_irq,4,2       ; @uniphier_gpio_to_irq
	.comm	_uniphier_gpio_irq_mask,4,2     ; @uniphier_gpio_irq_mask
	.comm	_uniphier_gpio_irq_unmask,4,2   ; @uniphier_gpio_irq_unmask
	.comm	_irq_chip_eoi_parent,4,2        ; @irq_chip_eoi_parent
	.comm	_irq_chip_set_affinity_parent,4,2 ; @irq_chip_set_affinity_parent
	.comm	_uniphier_gpio_irq_set_type,4,2 ; @uniphier_gpio_irq_set_type
	.comm	_UNIPHIER_GPIO_IRQ_MAX_NUM,4,2  ; @UNIPHIER_GPIO_IRQ_MAX_NUM
	.comm	_uniphier_gpio_irq_domain_ops,4,2 ; @uniphier_gpio_irq_domain_ops
	.no_dead_strip	_uniphier_gpio_probe
.subsections_via_symbols
