	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_kona_gpio_probe
_bcm_kona_gpio_probe:                   ## @bcm_kona_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, %r15
	movq	_bcm_kona_gpio_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%rax, %r14
	movq	_template_chip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movl	(%r15), %edi
	callq	_of_irq_count
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	_GPIO_MAX_BANK_NUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jle	LBB0_8
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$24, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%r15, 32(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movl	(%r15), %edi
	movl	%edi, 44(%r14)
	movq	_GPIO_PER_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	(%r14), %esi
	movl	%esi, 40(%r14)
	movq	_bcm_kona_irq_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 24(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movl	4(%r14), %edi
	callq	_irq_domain_remove
	jmp	LBB0_16
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_18:
	cmpl	$0, (%r14)
	jle	LBB0_22
## %bb.19:
	movl	$16, %ebx
	xorl	%r12d, %r12d
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r13
	movl	%r12d, -16(%r13,%rbx)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_platform_get_irq
	movq	%rax, -8(%r13,%rbx)
	movq	%r14, (%r13,%rbx)
	testq	%rax, %rax
	js	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jl	LBB0_20
LBB0_22:
	leaq	40(%r14), %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	callq	_bcm_kona_gpio_reset
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_28
## %bb.23:
	cmpl	$0, (%r14)
	jle	LBB0_26
## %bb.24:
	xorl	%ebx, %ebx
	movq	_bcm_kona_gpio_irq_handler@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdx
	movq	8(%rdx,%rbx), %rdi
	addq	%rbx, %rdx
	movl	(%r15), %esi
	callq	_irq_set_chained_handler_and_data
	incq	%r12
	movslq	(%r14), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jl	LBB0_25
LBB0_26:
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_raw_spin_lock_init
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_27:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_28:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_bcm_kona_gpio_of_match,4,2     ## @bcm_kona_gpio_of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find gpio controller\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_template_chip,8,2              ## @template_chip
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't determine # GPIO banks\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GPIO_MAX_BANK_NUM,4,2          ## @GPIO_MAX_BANK_NUM
L_.str.2:                               ## @.str.2
	.asciz	"Too many GPIO banks configured (max=%d)\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GPIO_PER_BANK,4,2              ## @GPIO_PER_BANK
	.comm	_bcm_kona_irq_ops,4,2           ## @bcm_kona_irq_ops
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't allocate IRQ domain\n"

L_.str.4:                               ## @.str.4
	.asciz	"Couldn't get IRQ for bank %d"

L_.str.5:                               ## @.str.5
	.asciz	"Setting up Kona GPIO\n"

L_.str.6:                               ## @.str.6
	.asciz	"Couldn't add GPIO chip -- %d\n"

	.comm	_bcm_kona_gpio_irq_handler,4,2  ## @bcm_kona_gpio_irq_handler
	.no_dead_strip	_bcm_kona_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_kona_gpio_probe
_bcm_kona_gpio_probe:                   ; @bcm_kona_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	x20, x0
Lloh0:
	adrp	x8, _bcm_kona_gpio_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bcm_kona_gpio_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_of_match_device
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x8, _template_chip@GOTPAGE
Lloh6:
	ldr	x8, [x8, _template_chip@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	x21, x0
	str	x8, [x21, #40]!
	ldr	w0, [x20]
	bl	_of_irq_count
	str	w0, [x19]
	cbz	w0, LBB0_7
; %bb.3:
	mov	x1, x0
Lloh8:
	adrp	x8, _GPIO_MAX_BANK_NUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIO_MAX_BANK_NUM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_8
; %bb.4:
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_dev_err
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _ENOENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #24
	bl	_devm_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.9:
	str	x20, [x19, #32]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	w0, [x20]
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _GPIO_PER_BANK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GPIO_PER_BANK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	mul	w1, w9, w8
	stp	w1, w0, [x19, #40]
Lloh26:
	adrp	x2, _bcm_kona_irq_ops@GOTPAGE
Lloh27:
	ldr	x2, [x2, _bcm_kona_irq_ops@GOTPAGEOFF]
	mov	x3, x19
	bl	_irq_domain_add_linear
	str	w0, [x19, #4]
	cbz	w0, LBB0_17
; %bb.10:
	mov	x0, x20
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.11:
Lloh28:
	adrp	x8, _ENXIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	ldr	w0, [x19, #4]
	bl	_irq_domain_remove
	b	LBB0_16
LBB0_14:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	mov	x0, x21
	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_17:
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_18:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.19:
	mov	x23, #0
	mov	x22, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x24, x8, x23
	str	w22, [x24]
	mov	x0, x20
	mov	x1, x22
	bl	_platform_get_irq
	stp	x0, x19, [x24, #8]
	tbnz	x0, #63, LBB0_27
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x23, x23, #24
	cmp	x22, x8
	b.lt	LBB0_20
LBB0_22:
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	x0, x19
	bl	_bcm_kona_gpio_reset
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_devm_gpiochip_add_data
	tbnz	w0, #31, LBB0_28
; %bb.23:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.24:
	mov	x20, #0
	mov	x21, #0
Lloh36:
	adrp	x22, _bcm_kona_gpio_irq_handler@GOTPAGE
Lloh37:
	ldr	x22, [x22, _bcm_kona_gpio_irq_handler@GOTPAGEOFF]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x2, x8, x20
	ldr	x0, [x2, #8]
	ldr	w1, [x22]
	bl	_irq_set_chained_handler_and_data
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #24
	cmp	x21, x8
	b.lt	LBB0_25
LBB0_26:
	add	x0, x19, #8
	bl	_raw_spin_lock_init
	mov	w21, #0
	b	LBB0_16
LBB0_27:
	str	x22, [sp]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh40:
	adrp	x8, _ENOENT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_12
LBB0_28:
	mov	x21, x0
	str	x21, [sp]
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_bcm_kona_gpio_of_match,4,2     ; @bcm_kona_gpio_of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find gpio controller\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_template_chip,8,2              ; @template_chip
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't determine # GPIO banks\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GPIO_MAX_BANK_NUM,4,2          ; @GPIO_MAX_BANK_NUM
l_.str.2:                               ; @.str.2
	.asciz	"Too many GPIO banks configured (max=%d)\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GPIO_PER_BANK,4,2              ; @GPIO_PER_BANK
	.comm	_bcm_kona_irq_ops,4,2           ; @bcm_kona_irq_ops
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't allocate IRQ domain\n"

l_.str.4:                               ; @.str.4
	.asciz	"Couldn't get IRQ for bank %d"

l_.str.5:                               ; @.str.5
	.asciz	"Setting up Kona GPIO\n"

l_.str.6:                               ; @.str.6
	.asciz	"Couldn't add GPIO chip -- %d\n"

	.comm	_bcm_kona_gpio_irq_handler,4,2  ; @bcm_kona_gpio_irq_handler
	.no_dead_strip	_bcm_kona_gpio_probe
.subsections_via_symbols
