	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function platform_msic_gpio_probe
_platform_msic_gpio_probe:              ## @platform_msic_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, %r14
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r14, 80(%r13)
	movl	%r15d, (%r13)
	movq	(%r12), %rax
	movq	_MSIC_GPIO_IRQ_OFFSET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 8(%r13)
	leaq	16(%r13), %r15
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, 16(%r13)
	movq	_msic_gpio_direction_input@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 64(%r13)
	movq	_msic_gpio_direction_output@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%r13)
	movq	_msic_gpio_get@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r13)
	movq	_msic_gpio_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%r13)
	movq	_msic_gpio_to_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r13)
	movq	%rax, 40(%r13)
	movq	_MSIC_NUM_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movl	$1, 28(%r13)
	movq	%r14, 32(%r13)
	movq	%r13, %rdi
	addq	$72, %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_8
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_8:
	cmpl	$0, 24(%r13)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	movq	_handle_simple_irq@GOTPCREL(%rip), %r15
	movq	_msic_irqchip@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_irq_set_chip_data
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	movl	(%r15), %edx
	movq	%r14, %rsi
	callq	_irq_set_chip_and_handler
	incq	%rbx
	movslq	24(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movl	(%r13), %edi
	movq	_msic_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_irq_set_chained_handler_and_data
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no IRQ line: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"incorrect or missing platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MSIC_GPIO_IRQ_OFFSET,8,3       ## @MSIC_GPIO_IRQ_OFFSET
L_.str.2:                               ## @.str.2
	.asciz	"msic_gpio"

	.comm	_msic_gpio_direction_input,4,2  ## @msic_gpio_direction_input
	.comm	_msic_gpio_direction_output,4,2 ## @msic_gpio_direction_output
	.comm	_msic_gpio_get,4,2              ## @msic_gpio_get
	.comm	_msic_gpio_set,4,2              ## @msic_gpio_set
	.comm	_msic_gpio_to_irq,4,2           ## @msic_gpio_to_irq
	.comm	_MSIC_NUM_GPIO,4,2              ## @MSIC_NUM_GPIO
L_.str.3:                               ## @.str.3
	.asciz	"Adding MSIC gpio chip failed\n"

	.comm	_msic_irqchip,4,2               ## @msic_irqchip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_msic_gpio_irq_handler,4,2      ## @msic_gpio_irq_handler
	.no_dead_strip	_platform_msic_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function platform_msic_gpio_probe
_platform_msic_gpio_probe:              ; @platform_msic_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	x20, x0
	bl	_dev_get_platdata
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	cbz	x22, LBB0_6
; %bb.2:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.4:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	str	x20, [x19, #80]
	str	w21, [x19]
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _MSIC_GPIO_IRQ_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSIC_GPIO_IRQ_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, x8
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
	mov	x21, x19
	str	x10, [x21, #16]!
	str	x9, [x19, #8]
Lloh8:
	adrp	x9, _msic_gpio_direction_input@GOTPAGE
Lloh9:
	ldr	x9, [x9, _msic_gpio_direction_input@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _msic_gpio_direction_output@GOTPAGE
Lloh12:
	ldr	x10, [x10, _msic_gpio_direction_output@GOTPAGEOFF]
	str	w9, [x19, #64]
Lloh13:
	ldr	w9, [x10]
Lloh14:
	adrp	x10, _msic_gpio_get@GOTPAGE
Lloh15:
	ldr	x10, [x10, _msic_gpio_get@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #56]
Lloh17:
	adrp	x9, _msic_gpio_set@GOTPAGE
Lloh18:
	ldr	x9, [x9, _msic_gpio_set@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _msic_gpio_to_irq@GOTPAGE
Lloh21:
	ldr	x10, [x10, _msic_gpio_to_irq@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #48]
Lloh23:
	adrp	x9, _MSIC_NUM_GPIO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MSIC_NUM_GPIO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	mov	w10, #1
	stp	w9, w10, [x19, #24]
	add	x0, x19, #72
	stp	x20, x8, [x19, #32]
	bl	_mutex_init
	mov	x0, x21
	mov	x1, x19
	bl	_gpiochip_add_data
	cbz	w0, LBB0_11
; %bb.5:
	mov	x21, x0
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_kfree
	b	LBB0_9
LBB0_6:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_8:
	str	x21, [sp]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
	mov	x0, x21
	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_10:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x21, #0
Lloh36:
	adrp	x22, _handle_simple_irq@GOTPAGE
Lloh37:
	ldr	x22, [x22, _handle_simple_irq@GOTPAGEOFF]
Lloh38:
	adrp	x20, _msic_irqchip@GOTPAGE
Lloh39:
	ldr	x20, [x20, _msic_irqchip@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x21, x8
	mov	x1, x19
	bl	_irq_set_chip_data
	ldr	x8, [x19, #8]
	add	x0, x21, x8
	ldr	w2, [x22]
	mov	x1, x20
	bl	_irq_set_chip_and_handler
	add	x21, x21, #1
	ldrsw	x8, [x19, #24]
	cmp	x21, x8
	b.lt	LBB0_13
LBB0_14:
	ldr	w0, [x19]
Lloh40:
	adrp	x8, _msic_gpio_irq_handler@GOTPAGE
Lloh41:
	ldr	x8, [x8, _msic_gpio_irq_handler@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_irq_set_chained_handler_and_data
	mov	w21, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no IRQ line: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"incorrect or missing platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MSIC_GPIO_IRQ_OFFSET,8,3       ; @MSIC_GPIO_IRQ_OFFSET
l_.str.2:                               ; @.str.2
	.asciz	"msic_gpio"

	.comm	_msic_gpio_direction_input,4,2  ; @msic_gpio_direction_input
	.comm	_msic_gpio_direction_output,4,2 ; @msic_gpio_direction_output
	.comm	_msic_gpio_get,4,2              ; @msic_gpio_get
	.comm	_msic_gpio_set,4,2              ; @msic_gpio_set
	.comm	_msic_gpio_to_irq,4,2           ; @msic_gpio_to_irq
	.comm	_MSIC_NUM_GPIO,4,2              ; @MSIC_NUM_GPIO
l_.str.3:                               ; @.str.3
	.asciz	"Adding MSIC gpio chip failed\n"

	.comm	_msic_irqchip,4,2               ; @msic_irqchip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_msic_gpio_irq_handler,4,2      ; @msic_gpio_irq_handler
	.no_dead_strip	_platform_msic_gpio_probe
.subsections_via_symbols
