	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixp4xx_gpio_probe
_ixp4xx_gpio_probe:                     ## @ixp4xx_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, %r14
	movq	(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	%r14, 96(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 88(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	88(%r12), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_of_irq_find_parent
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	movq	%rax, %rdi
	callq	_irq_find_host
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_of_node_to_fwnode
	movq	%rax, 80(%r12)
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ixp4xx_get_irq_domain
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_irq_domain_alloc_fwnode
	movq	%rax, 80(%r12)
	testq	%rax, %rax
	je	LBB0_23
LBB0_12:
	xorl	%eax, %eax
	callq	_machine_is_dsmg600
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_machine_is_nas100d
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	movq	_IXP4XX_REG_GPCLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	88(%r12), %rsi
	xorl	%edi, %edi
	callq	___raw_writel
LBB0_15:
	movq	88(%r12), %rax
	movq	_IXP4XX_REG_GPIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	_IXP4XX_REG_GPOUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	addq	%rax, %r8
	movq	_IXP4XX_REG_GPOE@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_bgpio_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_22
LBB0_18:
	movl	$16, (%r12)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 8(%r12)
	movq	$0, 72(%r12)
	movq	%r14, 64(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movq	_ixp4xx_gpio_irqchip@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r12)
	movq	80(%r12), %rax
	movq	%rax, 40(%r12)
	movq	%r15, 32(%r12)
	movq	_ixp4xx_gpio_child_to_parent_hwirq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_handle_bad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_24
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
LBB0_20:
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_21:
	leaq	L_.str.1(%rip), %rsi
LBB0_22:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_23:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_24:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no IRQ parent node\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"no IRQ parent domain\n"

L_.str.2:                               ## @.str.2
	.asciz	"no domain base\n"

	.comm	_IXP4XX_REG_GPCLK,8,3           ## @IXP4XX_REG_GPCLK
	.comm	_IXP4XX_REG_GPIN,8,3            ## @IXP4XX_REG_GPIN
	.comm	_IXP4XX_REG_GPOUT,8,3           ## @IXP4XX_REG_GPOUT
	.comm	_IXP4XX_REG_GPOE,8,3            ## @IXP4XX_REG_GPOE
L_.str.3:                               ## @.str.3
	.asciz	"unable to init generic GPIO\n"

L_.str.4:                               ## @.str.4
	.asciz	"IXP4XX_GPIO_CHIP"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ixp4xx_gpio_irqchip,4,2        ## @ixp4xx_gpio_irqchip
	.comm	_ixp4xx_gpio_child_to_parent_hwirq,4,2 ## @ixp4xx_gpio_child_to_parent_hwirq
	.comm	_handle_bad_irq,4,2             ## @handle_bad_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.5:                               ## @.str.5
	.asciz	"failed to add SoC gpiochip\n"

L_.str.6:                               ## @.str.6
	.asciz	"IXP4 GPIO registered\n"

	.comm	_BGPIOF_BIG_ENDIAN_BYTE_ORDER,8,3 ## @BGPIOF_BIG_ENDIAN_BYTE_ORDER
	.no_dead_strip	_ixp4xx_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixp4xx_gpio_probe
_ixp4xx_gpio_probe:                     ; @ixp4xx_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #96]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_devm_ioremap_resource
	str	x0, [x20, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #88]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_4:
	cbz	x22, LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_of_irq_find_parent
	cbz	x0, LBB0_14
; %bb.6:
	bl	_irq_find_host
	cbz	x0, LBB0_18
; %bb.7:
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_to_fwnode
	str	x0, [x20, #80]
	b	LBB0_9
LBB0_8:
	bl	_ixp4xx_get_irq_domain
	mov	x21, x0
	mov	x0, x23
	bl	_irq_domain_alloc_fwnode
	str	x0, [x20, #80]
	cbz	x0, LBB0_19
LBB0_9:
	bl	_machine_is_dsmg600
	cbnz	x0, LBB0_11
; %bb.10:
	bl	_machine_is_nas100d
	cbz	x0, LBB0_12
LBB0_11:
	ldr	x8, [x20, #88]
Lloh8:
	adrp	x9, _IXP4XX_REG_GPCLK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IXP4XX_REG_GPCLK@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	___raw_writel
LBB0_12:
	ldr	x8, [x20, #88]
Lloh11:
	adrp	x9, _IXP4XX_REG_GPIN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IXP4XX_REG_GPIN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x3, x9, x8
Lloh14:
	adrp	x9, _IXP4XX_REG_GPOUT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IXP4XX_REG_GPOUT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x4, x9, x8
Lloh17:
	adrp	x9, _IXP4XX_REG_GPOE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IXP4XX_REG_GPOE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x7, x9, x8
	str	xzr, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	mov	x5, #0
	mov	x6, #0
	bl	_bgpio_init
	cbz	w0, LBB0_15
; %bb.13:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_14:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_15:
	mov	w8, #16
	str	w8, [x20]
Lloh24:
	adrp	x8, l_.str.4@PAGE
Lloh25:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x20, #8]
	stp	x19, xzr, [x20, #64]
Lloh26:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x20, #56]
Lloh29:
	adrp	x8, _ixp4xx_gpio_irqchip@GOTPAGE
Lloh30:
	ldr	x9, [x8, _ixp4xx_gpio_irqchip@GOTPAGEOFF]
	ldr	x8, [x20, #80]
	stp	x8, x9, [x20, #40]
	str	x21, [x20, #32]
Lloh31:
	adrp	x8, _ixp4xx_gpio_child_to_parent_hwirq@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ixp4xx_gpio_child_to_parent_hwirq@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh34:
	adrp	x8, _handle_bad_irq@GOTPAGE
Lloh35:
	ldr	x8, [x8, _handle_bad_irq@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _IRQ_TYPE_NONE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x22, x0
	cbz	w0, LBB0_23
; %bb.16:
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_22
LBB0_18:
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_err
Lloh46:
	adrp	x8, _ENODEV@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_22:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no IRQ parent node\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"no IRQ parent domain\n"

l_.str.2:                               ; @.str.2
	.asciz	"no domain base\n"

	.comm	_IXP4XX_REG_GPCLK,8,3           ; @IXP4XX_REG_GPCLK
	.comm	_IXP4XX_REG_GPIN,8,3            ; @IXP4XX_REG_GPIN
	.comm	_IXP4XX_REG_GPOUT,8,3           ; @IXP4XX_REG_GPOUT
	.comm	_IXP4XX_REG_GPOE,8,3            ; @IXP4XX_REG_GPOE
l_.str.3:                               ; @.str.3
	.asciz	"unable to init generic GPIO\n"

l_.str.4:                               ; @.str.4
	.asciz	"IXP4XX_GPIO_CHIP"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ixp4xx_gpio_irqchip,4,2        ; @ixp4xx_gpio_irqchip
	.comm	_ixp4xx_gpio_child_to_parent_hwirq,4,2 ; @ixp4xx_gpio_child_to_parent_hwirq
	.comm	_handle_bad_irq,4,2             ; @handle_bad_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.5:                               ; @.str.5
	.asciz	"failed to add SoC gpiochip\n"

l_.str.6:                               ; @.str.6
	.asciz	"IXP4 GPIO registered\n"

	.comm	_BGPIOF_BIG_ENDIAN_BYTE_ORDER,8,3 ; @BGPIOF_BIG_ENDIAN_BYTE_ORDER
	.no_dead_strip	_ixp4xx_gpio_probe
.subsections_via_symbols
