	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc8xxx_probe
_mpc8xxx_probe:                         ## @mpc8xxx_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, %r12
	movq	(%rdi), %r15
	callq	_of_device_get_match_data
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	leaq	56(%r13), %rdi
	callq	_raw_spin_lock_init
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, %rbx
	addq	$24, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movq	(%r13), %r10
	movq	_GPIO_DAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r10, %rcx
	movq	_GPIO_DIR@GOTPCREL(%rip), %rdx
	addq	(%rdx), %r10
	movq	_BGPIOF_BIG_ENDIAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	$0
	pushq	%r10
	callq	_bgpio_init
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	%rbx, %r14
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_23
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_23
LBB0_7:
	movq	_BGPIOF_BIG_ENDIAN_BYTE_ORDER@GOTPCREL(%rip), %rax
	orl	(%rax), %r11d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	$0
	pushq	%r10
	callq	_bgpio_init
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movq	%rbx, %r14
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	48(%r13), %rax
	movq	%rax, 16(%r13)
	testq	%rbx, %rbx
	jne	LBB0_11
## %bb.10:
	movq	_mpc8xxx_gpio_devtype_default@GOTPCREL(%rip), %rbx
LBB0_11:
	movl	24(%rbx), %eax
	movq	_mpc8xxx_irq_chip@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, 48(%r13)
LBB0_13:
	movq	%rbx, %r12
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, 40(%r13)
LBB0_15:
	movq	_mpc8xxx_gpio_to_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	%r14, %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_pr_err
LBB0_17:
	movq	(%r13), %rdi
	callq	_iounmap
LBB0_23:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	je	LBB0_23
## %bb.19:
	movq	_MPC8XXX_GPIO_PINS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mpc8xxx_gpio_irq_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r13, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	movq	_GPIO_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	movl	$-1, %esi
	callq	*24(%r13)
	movq	_GPIO_IMR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	*24(%r13)
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_22:
	movl	8(%r13), %edi
	movq	_mpc8xxx_gpio_irq_cascade@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_irq_set_chained_handler_and_data
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"little-endian"

	.comm	_GPIO_DAT,8,3                   ## @GPIO_DAT
	.comm	_GPIO_DIR,8,3                   ## @GPIO_DIR
	.comm	_BGPIOF_BIG_ENDIAN,4,2          ## @BGPIOF_BIG_ENDIAN
L_.str.1:                               ## @.str.1
	.asciz	"GPIO registers are LITTLE endian\n"

	.comm	_BGPIOF_BIG_ENDIAN_BYTE_ORDER,4,2 ## @BGPIOF_BIG_ENDIAN_BYTE_ORDER
L_.str.2:                               ## @.str.2
	.asciz	"GPIO registers are BIG endian\n"

	.comm	_mpc8xxx_gpio_devtype_default,32,3 ## @mpc8xxx_gpio_devtype_default
	.comm	_mpc8xxx_irq_chip,4,2           ## @mpc8xxx_irq_chip
	.comm	_mpc8xxx_gpio_to_irq,4,2        ## @mpc8xxx_gpio_to_irq
L_.str.3:                               ## @.str.3
	.asciz	"%pOF: GPIO chip registration failed with status %d\n"

	.comm	_MPC8XXX_GPIO_PINS,4,2          ## @MPC8XXX_GPIO_PINS
	.comm	_mpc8xxx_gpio_irq_ops,4,2       ## @mpc8xxx_gpio_irq_ops
	.comm	_GPIO_IER,8,3                   ## @GPIO_IER
	.comm	_GPIO_IMR,8,3                   ## @GPIO_IMR
	.comm	_mpc8xxx_gpio_irq_cascade,4,2   ## @mpc8xxx_gpio_irq_cascade
	.no_dead_strip	_mpc8xxx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc8xxx_probe
_mpc8xxx_probe:                         ; @mpc8xxx_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	x23, x0
	ldr	x20, [x0]
	bl	_of_device_get_match_data
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x23
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x19, #56
	bl	_raw_spin_lock_init
	mov	x0, x20
	mov	w1, #0
	bl	_of_iomap
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	mov	x21, x19
	ldr	x8, [x21], #24
Lloh5:
	adrp	x9, _GPIO_DAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GPIO_DAT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _GPIO_DIR@GOTPAGE
Lloh9:
	ldr	x10, [x10, _GPIO_DIR@GOTPAGEOFF]
	add	x3, x9, x8
Lloh10:
	ldr	x9, [x10]
	add	x6, x9, x8
Lloh11:
	adrp	x8, _BGPIOF_BIG_ENDIAN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BGPIOF_BIG_ENDIAN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	x0, LBB0_6
; %bb.3:
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4
	mov	x4, #0
	mov	x5, #0
	mov	x7, #0
	bl	_bgpio_init
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.4:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_6:
Lloh19:
	adrp	x9, _BGPIOF_BIG_ENDIAN_BYTE_ORDER@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BGPIOF_BIG_ENDIAN_BYTE_ORDER@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4
	mov	x4, #0
	mov	x5, #0
	mov	x7, #0
	bl	_bgpio_init
	mov	x24, x0
	cbnz	w0, LBB0_14
; %bb.7:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x23
	bl	_dev_dbg
	ldr	x8, [x19, #48]
	str	x8, [x19, #16]
Lloh24:
	adrp	x8, _mpc8xxx_gpio_devtype_default@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mpc8xxx_gpio_devtype_default@GOTPAGEOFF]
	cmp	x22, #0
	csel	x22, x8, x22, eq
	ldr	w8, [x22, #24]
Lloh26:
	adrp	x9, _mpc8xxx_irq_chip@GOTPAGE
Lloh27:
	ldr	x9, [x9, _mpc8xxx_irq_chip@GOTPAGEOFF]
Lloh28:
	str	w8, [x9]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_10
; %bb.9:
	str	x8, [x19, #48]
LBB0_10:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_12
; %bb.11:
	str	x8, [x19, #40]
LBB0_12:
Lloh29:
	adrp	x8, _mpc8xxx_gpio_to_irq@GOTPAGE
Lloh30:
	ldr	x8, [x8, _mpc8xxx_gpio_to_irq@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	x0, x21
	mov	x1, x19
	bl	_gpiochip_add_data
	cbz	w0, LBB0_16
; %bb.13:
	mov	x24, x0
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	mov	x2, x24
	bl	_pr_err
LBB0_14:
	ldr	x0, [x19]
	bl	_iounmap
LBB0_15:
	mov	x0, x24
	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_16:
	mov	x0, x20
	mov	w1, #0
	bl	_irq_of_parse_and_map
	str	w0, [x19, #8]
	cbz	w0, LBB0_21
; %bb.17:
Lloh34:
	adrp	x8, _MPC8XXX_GPIO_PINS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MPC8XXX_GPIO_PINS@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, _mpc8xxx_gpio_irq_ops@GOTPAGE
Lloh38:
	ldr	x2, [x2, _mpc8xxx_gpio_irq_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x3, x19
	bl	_irq_domain_add_linear
	str	w0, [x19, #12]
	cbz	w0, LBB0_21
; %bb.18:
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
Lloh39:
	adrp	x10, _GPIO_IER@GOTPAGE
Lloh40:
	ldr	x10, [x10, _GPIO_IER@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	add	x0, x10, x9
	mov	w1, #-1
	blr	x8
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
Lloh42:
	adrp	x10, _GPIO_IMR@GOTPAGE
Lloh43:
	ldr	x10, [x10, _GPIO_IMR@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	add	x0, x10, x9
	mov	w1, #0
	blr	x8
	ldr	x8, [x22]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x21
	blr	x8
LBB0_20:
	ldr	w0, [x19, #8]
Lloh45:
	adrp	x8, _mpc8xxx_gpio_irq_cascade@GOTPAGE
Lloh46:
	ldr	x8, [x8, _mpc8xxx_gpio_irq_cascade@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_irq_set_chained_handler_and_data
LBB0_21:
	mov	w24, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"little-endian"

	.comm	_GPIO_DAT,8,3                   ; @GPIO_DAT
	.comm	_GPIO_DIR,8,3                   ; @GPIO_DIR
	.comm	_BGPIOF_BIG_ENDIAN,4,2          ; @BGPIOF_BIG_ENDIAN
l_.str.1:                               ; @.str.1
	.asciz	"GPIO registers are LITTLE endian\n"

	.comm	_BGPIOF_BIG_ENDIAN_BYTE_ORDER,4,2 ; @BGPIOF_BIG_ENDIAN_BYTE_ORDER
l_.str.2:                               ; @.str.2
	.asciz	"GPIO registers are BIG endian\n"

	.comm	_mpc8xxx_gpio_devtype_default,32,3 ; @mpc8xxx_gpio_devtype_default
	.comm	_mpc8xxx_irq_chip,4,2           ; @mpc8xxx_irq_chip
	.comm	_mpc8xxx_gpio_to_irq,4,2        ; @mpc8xxx_gpio_to_irq
l_.str.3:                               ; @.str.3
	.asciz	"%pOF: GPIO chip registration failed with status %d\n"

	.comm	_MPC8XXX_GPIO_PINS,4,2          ; @MPC8XXX_GPIO_PINS
	.comm	_mpc8xxx_gpio_irq_ops,4,2       ; @mpc8xxx_gpio_irq_ops
	.comm	_GPIO_IER,8,3                   ; @GPIO_IER
	.comm	_GPIO_IMR,8,3                   ; @GPIO_IMR
	.comm	_mpc8xxx_gpio_irq_cascade,4,2   ; @mpc8xxx_gpio_irq_cascade
	.no_dead_strip	_mpc8xxx_probe
.subsections_via_symbols
