	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nokia_modem_gpio_probe
_nokia_modem_gpio_probe:                ## @nokia_modem_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, %r12
	movq	(%rdi), %r15
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_of_gpio_count
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_count_strings
	cmpl	%eax, %ebx
	jne	LBB0_12
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movl	%ebx, (%r14)
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	shlq	$3, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_devm_gpiod_get_index
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	leaq	(%rax,%r15), %rcx
	addq	$4, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_of_property_read_string_index
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%r15), %edi
	xorl	%esi, %esi
	callq	_gpiod_export
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%r15), %edx
	movl	4(%rax,%r15), %esi
	movq	%r12, %rdi
	callq	_gpiod_export_link
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	addq	$8, %r15
	xorl	%ebx, %ebx
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_19
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
LBB0_11:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_18:
	movl	%eax, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rax
	movl	(%rax,%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_16:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing gpios: %d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"number of gpios does not equal number of gpio names\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.3:                               ## @.str.3
	.asciz	"Could not get gpio %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Could not get gpio name %d\n"

	.no_dead_strip	_nokia_modem_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nokia_modem_gpio_probe
_nokia_modem_gpio_probe:                ; @nokia_modem_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
	ldr	x21, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_of_gpio_count
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_property_count_strings
	cmp	w22, w0
	b.ne	LBB0_12
; %bb.2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_13
; %bb.3:
	str	w22, [x20]
	cbz	w22, LBB0_15
; %bb.4:
	mov	x25, #0
	mov	w23, #0
	mov	w8, w22
	lsl	x26, x8, #3
Lloh5:
	adrp	x27, _GPIOD_OUT_LOW@GOTPAGE
Lloh6:
	ldr	x27, [x27, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh7:
	adrp	x24, l_.str.1@PAGE
Lloh8:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x23
	bl	_devm_gpiod_get_index
	ldr	x8, [x20, #8]
	str	w0, [x8, x25]
	bl	_IS_ERR
	cbnz	x0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	add	x3, x8, #4
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_of_property_read_string_index
	cbnz	w0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x25]
	mov	w1, #0
	bl	_gpiod_export
	cbnz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_gpiod_export_link
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	add	x25, x25, #8
	cmp	x26, x25
	b.ne	LBB0_5
	b	LBB0_15
LBB0_10:
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_12:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x22
	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_16:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x25]
	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
	b	_PTR_ERR
LBB0_17:
	mov	x22, x0
	str	x23, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_18:
	mov	x22, x0
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing gpios: %d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"number of gpios does not equal number of gpio names\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.3:                               ; @.str.3
	.asciz	"Could not get gpio %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Could not get gpio name %d\n"

	.no_dead_strip	_nokia_modem_gpio_probe
.subsections_via_symbols
