	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpc18xx_gpio_probe
_lpc18xx_gpio_probe:                    ## @lpc18xx_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	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_lpc18xx_chip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_of_property_match_string
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	leaq	-32(%rbp), %rdx
	movl	%eax, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_devm_ioremap_resource
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
LBB0_6:
	movl	%eax, 20(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	20(%r15), %edi
	jmp	LBB0_8
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r15), %edi
LBB0_8:
	callq	_PTR_ERR
LBB0_9:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r15), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_17
LBB0_14:
	leaq	8(%r15), %rbx
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	%r14, 8(%r15)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r15), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_17
LBB0_16:
	movq	%r15, %rdi
	callq	_lpc18xx_gpio_pin_ic_probe
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lpc18xx_chip,8,3               ## @lpc18xx_chip
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg-names"

L_.str.1:                               ## @.str.1
	.asciz	"gpio"

L_.str.2:                               ## @.str.2
	.asciz	"input clock not found\n"

L_.str.3:                               ## @.str.3
	.asciz	"unable to enable clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to add gpio chip\n"

	.no_dead_strip	_lpc18xx_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpc18xx_gpio_probe
_lpc18xx_gpio_probe:                    ; @lpc18xx_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _lpc18xx_chip@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lpc18xx_chip@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x21, x0
	str	x8, [x21, #8]!
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_of_property_match_string
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x1, x0
	ldr	w0, [x19]
	add	x2, sp, #8
	bl	_of_address_to_resource
	tbnz	w0, #31, LBB0_11
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_devm_ioremap_resource
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
LBB0_6:
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x20, #20]
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
LBB0_10:
	bl	_PTR_ERR
LBB0_11:
	mov	x22, x0
LBB0_12:
	mov	x0, x22
	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
LBB0_13:
	ldr	w0, [x20]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_15:
	add	x0, x20, #16
	bl	_spin_lock_init
	str	x19, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x22, x0
	cbz	w0, LBB0_17
; %bb.16:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_12
LBB0_17:
	mov	x0, x20
	bl	_lpc18xx_gpio_pin_ic_probe
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lpc18xx_chip,8,3               ; @lpc18xx_chip
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg-names"

l_.str.1:                               ; @.str.1
	.asciz	"gpio"

l_.str.2:                               ; @.str.2
	.asciz	"input clock not found\n"

l_.str.3:                               ; @.str.3
	.asciz	"unable to enable clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to add gpio chip\n"

	.no_dead_strip	_lpc18xx_gpio_probe
.subsections_via_symbols
