	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sch311x_gpio_probe
_sch311x_gpio_probe:                    ## @sch311x_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
	subq	$24, %rsp
	.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
	movq	_GP1@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rax), %rsi
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	$72, %r15d
	movl	$8, %r13d
	xorl	%ebx, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r12
	leaq	(%r12,%r15), %rdi
	leaq	(%r12,%r15), %rax
	addq	$-72, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_init
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%r12,%r15)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%r12,%r15)
	movq	_sch311x_gpio_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%r12,%r15)
	movq	_sch311x_gpio_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%r12,%r15)
	movq	_sch311x_gpio_direction_in@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%r12,%r15)
	movq	_sch311x_gpio_direction_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%r12,%r15)
	movq	_sch311x_gpio_get_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%r12,%r15)
	movq	_sch311x_gpio_set_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%r12,%r15)
	movq	_sch311x_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%r12,%r15)
	movq	_sch311x_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%r12,%r15)
	movl	$8, -72(%r12,%r15)
	movq	%r14, -64(%r12,%r15)
	movq	_sch311x_gpio_blocks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13), %ecx
	movl	%ecx, -68(%r12,%r15)
	movl	-4(%rax,%r13), %ecx
	movl	%ecx, -4(%r12,%r15)
	movl	-8(%rax,%r13), %eax
	movl	%eax, -8(%r12,%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -16(%r12,%r15)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_info
	incq	%rbx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$80, %r15
	addq	$12, %r13
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_1:
	movq	(%r15), %rax
	movq	(%r14), %rcx
	leaq	(%rcx,%rax), %rdx
	addq	%rax, %rcx
	addq	$5, %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_7:
	movl	%eax, %r12d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.8:
	addq	$-152, %r15
	incq	%rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%r15, %rdi
	callq	_gpiochip_remove
	decq	%rbx
	addq	$-80, %r15
	cmpq	$1, %rbx
	jg	LBB0_9
LBB0_12:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GP1,8,3                        ## @GP1
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to request region 0x%04x-0x%04x.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_sch311x_gpio_request,4,2       ## @sch311x_gpio_request
	.comm	_sch311x_gpio_free,4,2          ## @sch311x_gpio_free
	.comm	_sch311x_gpio_direction_in,4,2  ## @sch311x_gpio_direction_in
	.comm	_sch311x_gpio_direction_out,4,2 ## @sch311x_gpio_direction_out
	.comm	_sch311x_gpio_get_direction,4,2 ## @sch311x_gpio_get_direction
	.comm	_sch311x_gpio_set_config,4,2    ## @sch311x_gpio_set_config
	.comm	_sch311x_gpio_get,4,2           ## @sch311x_gpio_get
	.comm	_sch311x_gpio_set,4,2           ## @sch311x_gpio_set
	.comm	_sch311x_gpio_blocks,8,3        ## @sch311x_gpio_blocks
L_.str.1:                               ## @.str.1
	.asciz	"Could not register gpiochip, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"SMSC SCH311x GPIO block %d registered.\n"

	.no_dead_strip	_sch311x_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sch311x_gpio_probe
_sch311x_gpio_probe:                    ; @sch311x_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x20, _GP1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GP1@GOTPAGEOFF]
	ldr	x8, [x0]
	ldr	x9, [x20]
	add	x1, x9, x8
Lloh2:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #6
	bl	_devm_request_region
	cbz	w0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x27, #0
	mov	x22, #0
	mov	x26, #-80
Lloh8:
	adrp	x28, _sch311x_gpio_get@GOTPAGE
Lloh9:
	ldr	x28, [x28, _sch311x_gpio_get@GOTPAGEOFF]
Lloh10:
	adrp	x23, _sch311x_gpio_set@GOTPAGE
Lloh11:
	ldr	x23, [x23, _sch311x_gpio_set@GOTPAGEOFF]
Lloh12:
	adrp	x25, _sch311x_gpio_blocks@GOTPAGE
Lloh13:
	ldr	x25, [x25, _sch311x_gpio_blocks@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x24, x8, x26
	add	x0, x24, #152
	bl	_spin_lock_init
Lloh14:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x24, #132]
Lloh17:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x24, #128]
Lloh20:
	adrp	x8, _sch311x_gpio_request@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sch311x_gpio_request@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x24, #124]
Lloh23:
	adrp	x8, _sch311x_gpio_free@GOTPAGE
Lloh24:
	ldr	x8, [x8, _sch311x_gpio_free@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x24, #120]
Lloh26:
	adrp	x8, _sch311x_gpio_direction_in@GOTPAGE
Lloh27:
	ldr	x8, [x8, _sch311x_gpio_direction_in@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x24, #116]
Lloh29:
	adrp	x8, _sch311x_gpio_direction_out@GOTPAGE
Lloh30:
	ldr	x8, [x8, _sch311x_gpio_direction_out@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x24, #112]
Lloh32:
	adrp	x8, _sch311x_gpio_get_direction@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sch311x_gpio_get_direction@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x24, #108]
Lloh35:
	adrp	x8, _sch311x_gpio_set_config@GOTPAGE
Lloh36:
	ldr	x8, [x8, _sch311x_gpio_set_config@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x24, #104]
	ldr	w8, [x28]
	str	w8, [x24, #100]
	ldr	w8, [x23]
	mov	w9, #8
	str	w9, [x24, #80]!
	str	w8, [x24, #16]
	str	x19, [x24, #8]
	ldr	x8, [x25]
	add	x8, x8, x27
	ldr	w9, [x8, #8]
	str	w9, [x24, #4]
	ldr	d0, [x8]
	str	d0, [x24, #64]
	ldr	x8, [x21]
	str	x8, [x24, #56]
	mov	x0, x24
	mov	x1, x24
	bl	_gpiochip_add_data
	tbnz	w0, #31, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_dev_info
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x26, x26, #80
	add	x27, x27, #12
	cmp	x22, w0, sxtw
	b.lt	LBB0_4
LBB0_6:
	mov	w24, #0
	b	LBB0_10
LBB0_7:
	ldr	x8, [x21]
	ldr	x9, [x20]
	add	x2, x9, x8
	add	x8, x2, #5
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str@PAGE
Lloh41:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh42:
	adrp	x8, _EBUSY@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	x24, x0
Lloh46:
	adrp	x1, l_.str.1@PAGE
Lloh47:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_dev_err
	cbz	w22, LBB0_10
; %bb.12:
	add	x19, x22, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x26
	bl	_gpiochip_remove
	sub	x19, x19, #1
	sub	x26, x26, #80
	cmp	x19, #1
	b.gt	LBB0_13
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GP1,8,3                        ; @GP1
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to request region 0x%04x-0x%04x.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_sch311x_gpio_request,4,2       ; @sch311x_gpio_request
	.comm	_sch311x_gpio_free,4,2          ; @sch311x_gpio_free
	.comm	_sch311x_gpio_direction_in,4,2  ; @sch311x_gpio_direction_in
	.comm	_sch311x_gpio_direction_out,4,2 ; @sch311x_gpio_direction_out
	.comm	_sch311x_gpio_get_direction,4,2 ; @sch311x_gpio_get_direction
	.comm	_sch311x_gpio_set_config,4,2    ; @sch311x_gpio_set_config
	.comm	_sch311x_gpio_get,4,2           ; @sch311x_gpio_get
	.comm	_sch311x_gpio_set,4,2           ; @sch311x_gpio_set
	.comm	_sch311x_gpio_blocks,8,3        ; @sch311x_gpio_blocks
l_.str.1:                               ; @.str.1
	.asciz	"Could not register gpiochip, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"SMSC SCH311x GPIO block %d registered.\n"

	.no_dead_strip	_sch311x_gpio_probe
.subsections_via_symbols
