	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function timbgpio_probe
_timbgpio_probe:                        ## @timbgpio_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, %rbx
	callq	_dev_get_platdata
	movq	%rax, %r15
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	cmpl	$33, (%r15)
	jl	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	subl	(%rax), %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r12
	movq	8(%r15), %rax
	movq	%rax, (%r12)
	leaq	80(%r12), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	8(%r12), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_3
LBB0_9:
	movq	%r12, %r13
	addq	$16, %r13
	movq	%rbx, %rdi
	callq	_dev_name
	movl	%eax, 76(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movq	%rbx, 64(%r12)
	movq	_timbgpio_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r12)
	movq	_timbgpio_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movq	_timbgpio_gpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movq	_timbgpio_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	testl	%r14d, %r14d
	js	LBB0_13
## %bb.10:
	cmpq	$0, (%r12)
	jle	LBB0_13
## %bb.11:
	movq	_timbgpio_to_irq@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, 40(%r12)
	movq	$0, 32(%r12)
	movl	16(%r15), %eax
	movl	%eax, 24(%r12)
	movl	(%r15), %eax
	movl	%eax, 16(%r12)
	movl	$0, 20(%r12)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_devm_gpiochip_add_data
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.15:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	_TGPIO_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_iowrite32
	testl	%r14d, %r14d
	js	LBB0_4
## %bb.16:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jle	LBB0_4
## %bb.17:
	cmpl	$0, (%r15)
	jle	LBB0_21
## %bb.18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rdi
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_timbgpio_irqchip@GOTPCREL(%rip), %rsi
	callq	_irq_set_chip_and_handler
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_irq_set_chip_data
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	_IRQ_NOPROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_NOREQUEST@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_irq_clear_status_flags
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r12), %rdi
	jmp	LBB0_19
LBB0_21:
	movq	_timbgpio_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_irq_set_chained_handler_and_data
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_timbgpio_gpio_direction_input,4,2 ## @timbgpio_gpio_direction_input
	.comm	_timbgpio_gpio_get,4,2          ## @timbgpio_gpio_get
	.comm	_timbgpio_gpio_direction_output,4,2 ## @timbgpio_gpio_direction_output
	.comm	_timbgpio_gpio_set,4,2          ## @timbgpio_gpio_set
	.comm	_timbgpio_to_irq,8,3            ## @timbgpio_to_irq
	.comm	_TGPIO_IER,8,3                  ## @TGPIO_IER
	.comm	_timbgpio_irqchip,4,2           ## @timbgpio_irqchip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_NOREQUEST,4,2              ## @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ## @IRQ_NOPROBE
	.comm	_timbgpio_irq,4,2               ## @timbgpio_irq
	.no_dead_strip	_timbgpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function timbgpio_probe
_timbgpio_probe:                        ; @timbgpio_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	bl	_dev_get_platdata
	mov	x19, x0
	mov	x0, x22
	mov	w1, #0
	bl	_platform_get_irq
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #33
	b.lt	LBB0_5
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x20, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.6:
	mov	x21, x0
	ldr	x8, [x19, #8]
	str	x8, [x0], #80
	bl	_spin_lock_init
	mov	x0, x22
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x21, #8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_8:
	add	x23, x21, #16
	mov	x0, x22
	bl	_dev_name
Lloh8:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w0, [x21, #72]
	str	x22, [x21, #64]
Lloh11:
	adrp	x8, _timbgpio_gpio_direction_input@GOTPAGE
Lloh12:
	ldr	x8, [x8, _timbgpio_gpio_direction_input@GOTPAGEOFF]
Lloh13:
	adrp	x9, _timbgpio_gpio_get@GOTPAGE
Lloh14:
	ldr	x9, [x9, _timbgpio_gpio_get@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #56]
Lloh17:
	adrp	x8, _timbgpio_gpio_direction_output@GOTPAGE
Lloh18:
	ldr	x8, [x8, _timbgpio_gpio_direction_output@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _timbgpio_gpio_set@GOTPAGE
Lloh21:
	ldr	x9, [x9, _timbgpio_gpio_set@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #48]
	tbnz	w20, #31, LBB0_10
; %bb.9:
	ldr	x8, [x21]
Lloh23:
	adrp	x9, _timbgpio_to_irq@GOTPAGE
Lloh24:
	ldr	x9, [x9, _timbgpio_to_irq@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, xzr, gt
	b	LBB0_11
LBB0_10:
	mov	x8, #0
LBB0_11:
	stp	xzr, x8, [x21, #32]
	ldr	w8, [x19, #16]
	str	w8, [x21, #24]
	ldr	w8, [x19]
	stp	w8, wzr, [x21, #16]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_devm_gpiochip_add_data
	cbnz	w0, LBB0_4
; %bb.12:
	mov	x0, x22
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	x8, [x21, #8]
Lloh26:
	adrp	x9, _TGPIO_IER@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TGPIO_IER@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	tbnz	w20, #31, LBB0_19
; %bb.13:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_19
; %bb.14:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x23, #0
Lloh29:
	adrp	x24, _handle_simple_irq@GOTPAGE
Lloh30:
	ldr	x24, [x24, _handle_simple_irq@GOTPAGEOFF]
Lloh31:
	adrp	x22, _timbgpio_irqchip@GOTPAGE
Lloh32:
	ldr	x22, [x22, _timbgpio_irqchip@GOTPAGEOFF]
Lloh33:
	adrp	x25, _IRQ_NOREQUEST@GOTPAGE
Lloh34:
	ldr	x25, [x25, _IRQ_NOREQUEST@GOTPAGEOFF]
Lloh35:
	adrp	x26, _IRQ_NOPROBE@GOTPAGE
Lloh36:
	ldr	x26, [x26, _IRQ_NOPROBE@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x8, x23
	ldr	w2, [x24]
	mov	x1, x22
	bl	_irq_set_chip_and_handler
	ldr	x8, [x21]
	add	x0, x23, x8
	mov	x1, x21
	bl	_irq_set_chip_data
	ldr	x8, [x21]
	add	x0, x23, x8
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w1, w9, w8
	bl	_irq_clear_status_flags
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x21]
	b	LBB0_16
LBB0_18:
Lloh37:
	adrp	x8, _timbgpio_irq@GOTPAGE
Lloh38:
	ldr	x8, [x8, _timbgpio_irq@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_irq_set_chained_handler_and_data
LBB0_19:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_timbgpio_gpio_direction_input,4,2 ; @timbgpio_gpio_direction_input
	.comm	_timbgpio_gpio_get,4,2          ; @timbgpio_gpio_get
	.comm	_timbgpio_gpio_direction_output,4,2 ; @timbgpio_gpio_direction_output
	.comm	_timbgpio_gpio_set,4,2          ; @timbgpio_gpio_set
	.comm	_timbgpio_to_irq,8,3            ; @timbgpio_to_irq
	.comm	_TGPIO_IER,8,3                  ; @TGPIO_IER
	.comm	_timbgpio_irqchip,4,2           ; @timbgpio_irqchip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_NOREQUEST,4,2              ; @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ; @IRQ_NOPROBE
	.comm	_timbgpio_irq,4,2               ; @timbgpio_irq
	.no_dead_strip	_timbgpio_probe
.subsections_via_symbols
