	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb86s70_gpio_probe
_mb86s70_gpio_probe:                    ## @mb86s70_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 64(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	64(%rbx), %edi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_5:
	movq	%r14, %rdi
	callq	_has_acpi_companion
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	addq	$60, %rdi
	callq	_spin_lock_init
	movq	_mb86s70_gpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_mb86s70_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_mb86s70_gpio_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_mb86s70_gpio_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_mb86s70_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_mb86s70_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 28(%rbx)
	movl	$32, (%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movl	$-1, 4(%rbx)
	movq	%r14, %rdi
	callq	_has_acpi_companion
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_mb86s70_gpio_to_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	56(%rbx), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_14
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 56(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	56(%rbx), %edi
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:
	callq	_clk_prepare_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_8
LBB0_12:
	movq	%r14, %rdi
	callq	_has_acpi_companion
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_acpi_gpiochip_request_interrupts
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mb86s70_gpio_direction_output,4,2 ## @mb86s70_gpio_direction_output
	.comm	_mb86s70_gpio_direction_input,4,2 ## @mb86s70_gpio_direction_input
	.comm	_mb86s70_gpio_request,4,2       ## @mb86s70_gpio_request
	.comm	_mb86s70_gpio_free,4,2          ## @mb86s70_gpio_free
	.comm	_mb86s70_gpio_get,4,2           ## @mb86s70_gpio_get
	.comm	_mb86s70_gpio_set,4,2           ## @mb86s70_gpio_set
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_mb86s70_gpio_to_irq,4,2        ## @mb86s70_gpio_to_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't register gpio driver\n"

	.no_dead_strip	_mb86s70_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mb86s70_gpio_probe
lCPI0_0:
	.long	32                              ; 0x20
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mb86s70_gpio_probe:                    ; @mb86s70_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #64]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_5:
	mov	x0, x20
	bl	_has_acpi_companion
	cbz	x0, LBB0_10
LBB0_6:
	add	x0, x19, #60
	bl	_spin_lock_init
Lloh6:
	adrp	x8, _mb86s70_gpio_direction_output@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mb86s70_gpio_direction_output@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _mb86s70_gpio_direction_input@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mb86s70_gpio_direction_input@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh12:
	adrp	x8, _mb86s70_gpio_request@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mb86s70_gpio_request@GOTPAGEOFF]
Lloh14:
	adrp	x9, _mb86s70_gpio_free@GOTPAGE
Lloh15:
	ldr	x9, [x9, _mb86s70_gpio_free@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh18:
	adrp	x8, _mb86s70_gpio_get@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mb86s70_gpio_get@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _mb86s70_gpio_set@GOTPAGE
Lloh22:
	ldr	x9, [x9, _mb86s70_gpio_set@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	mov	x0, x20
	bl	_dev_name
	str	x20, [x19, #16]
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
Lloh26:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #24]
	mov	x0, x20
	bl	_has_acpi_companion
	cbz	x0, LBB0_8
; %bb.7:
Lloh29:
	adrp	x8, _mb86s70_gpio_to_irq@GOTPAGE
Lloh30:
	ldr	x8, [x8, _mb86s70_gpio_to_irq@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_8:
	mov	x0, x19
	mov	x1, x19
	bl	_gpiochip_add_data
	cbz	w0, LBB0_12
; %bb.9:
	mov	x21, x0
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #56]
	bl	_clk_disable_unprepare
	b	LBB0_15
LBB0_10:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #56]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #56]
	cbnz	x8, LBB0_3
; %bb.11:
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_15
	b	LBB0_6
LBB0_12:
	mov	x0, x20
	bl	_has_acpi_companion
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_acpi_gpiochip_request_interrupts
LBB0_14:
	mov	w21, #0
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdrp	Lloh24, Lloh26
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mb86s70_gpio_direction_output,4,2 ; @mb86s70_gpio_direction_output
	.comm	_mb86s70_gpio_direction_input,4,2 ; @mb86s70_gpio_direction_input
	.comm	_mb86s70_gpio_request,4,2       ; @mb86s70_gpio_request
	.comm	_mb86s70_gpio_free,4,2          ; @mb86s70_gpio_free
	.comm	_mb86s70_gpio_get,4,2           ; @mb86s70_gpio_get
	.comm	_mb86s70_gpio_set,4,2           ; @mb86s70_gpio_set
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_mb86s70_gpio_to_irq,4,2        ; @mb86s70_gpio_to_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't register gpio driver\n"

	.no_dead_strip	_mb86s70_gpio_probe
.subsections_via_symbols
