	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_fan_get_of_data
_gpio_fan_get_of_data:                  ## @gpio_fan_get_of_data
	.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, %r14
	movq	32(%rdi), %r13
	movq	(%r13), %r15
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	24(%r14), %rdi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_gpiod_count
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.5:
	movq	%rax, %r12
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.6:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_GPIOD_ASIS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, (%r12,%rbx,8)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_24
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_7
## %bb.9:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_10:
	cmpq	$0, 24(%r14)
	jne	LBB0_30
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_27
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, -44(%rbp)
	movq	%r12, 16(%r14)
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:
	movq	%rax, %r15
	movl	-44(%rbp), %esi
	movl	%esi, %eax
	shrl	$3, %eax
	movl	%eax, -44(%rbp)
	cmpl	$8, %esi
	jb	LBB0_26
## %bb.15:
	movl	%esi, %eax
	andl	$8, %eax
	jne	LBB0_26
## %bb.16:
	shrl	$4, %esi
	movl	%esi, 4(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	$16, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, %rbx
	movl	$0, -44(%rbp)
	cmpl	$0, 4(%r14)
	je	LBB0_22
## %bb.18:
	xorl	%eax, %eax
	leaq	-56(%rbp), %r12
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_of_prop_next_u32
	testq	%rax, %rax
	je	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rcx
	movl	-44(%rbp), %edx
	shlq	$4, %rdx
	movq	%rcx, 8(%rbx,%rdx)
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_of_prop_next_u32
	testq	%rax, %rax
	je	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rcx
	movl	-44(%rbp), %edx
	leal	1(%rdx), %esi
	shlq	$4, %rdx
	movq	%rcx, (%rbx,%rdx)
	movl	%esi, -44(%rbp)
	cmpl	4(%r14), %esi
	jb	LBB0_19
LBB0_22:
	movq	%rbx, 8(%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_30
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_24:
	movl	%ebx, -44(%rbp)
	movq	(%r12,%rbx,8), %rdi
	jmp	LBB0_2
LBB0_25:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_27
LBB0_26:
	leaq	L_.str.4(%rip), %rsi
LBB0_27:
	movq	%r13, %rdi
	callq	_dev_err
LBB0_28:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_29:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_30:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alarm"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.1:                               ## @.str.1
	.asciz	"DT properties empty / missing"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GPIOD_ASIS,4,2                 ## @GPIOD_ASIS
L_.str.2:                               ## @.str.2
	.asciz	"gpio-fan,speed-map"

L_.str.3:                               ## @.str.3
	.asciz	"gpio-fan,speed-map DT property missing"

L_.str.4:                               ## @.str.4
	.asciz	"gpio-fan,speed-map contains zero/odd number of entries"

	.no_dead_strip	_gpio_fan_get_of_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_fan_get_of_data
_gpio_fan_get_of_data:                  ; @gpio_fan_get_of_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x20, [x0, #32]
	ldr	x21, [x20]
Lloh0:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #24]
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_3:
	mov	x0, x20
	mov	x1, #0
	bl	_gpiod_count
	str	w0, [x19]
	cbz	w0, LBB0_9
; %bb.4:
	mov	x1, x0
Lloh5:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	cbz	x0, LBB0_22
; %bb.5:
	mov	x22, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.6:
	mov	x23, #0
Lloh7:
	adrp	x25, _GPIOD_ASIS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _GPIOD_ASIS@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, #0
	mov	x2, x23
	bl	_devm_gpiod_get_index
	str	x0, [x22, x23, lsl #3]
	bl	_IS_ERR
	cbnz	x0, LBB0_24
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldr	w8, [x19]
	cmp	x23, x8
	b.lo	LBB0_7
	b	LBB0_12
LBB0_9:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_23
; %bb.10:
	mov	w0, #0
	b	LBB0_30
LBB0_11:
	mov	w23, #0
LBB0_12:
	str	w23, [sp, #12]
	str	x22, [x19, #16]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_find_property
	cbz	x0, LBB0_25
; %bb.13:
	ldr	w8, [sp, #12]
	lsr	w9, w8, #3
	str	w9, [sp, #12]
	cmp	w8, #8
	b.lo	LBB0_26
; %bb.14:
	tbnz	w8, #3, LBB0_26
; %bb.15:
	mov	x21, x0
	lsr	w1, w8, #4
	str	w1, [x19, #4]
	ldr	w3, [x24]
	mov	x0, x20
	mov	w2, #16
	bl	_devm_kcalloc
	cbz	x0, LBB0_22
; %bb.16:
	mov	x20, x0
	str	wzr, [sp, #12]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_21
; %bb.17:
	mov	x1, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x2, sp
	mov	x0, x21
	bl	_of_prop_next_u32
	cbz	x0, LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x1, x0
	ldr	x8, [sp]
	ldr	w9, [sp, #12]
	add	x9, x20, x9, lsl #4
	str	x8, [x9, #8]
	mov	x2, sp
	mov	x0, x21
	bl	_of_prop_next_u32
	cbz	x0, LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x1, x0
	ldr	x8, [sp]
	ldr	w9, [sp, #12]
	lsl	x10, x9, #4
	str	x8, [x20, x10]
	add	w8, w9, #1
	str	w8, [sp, #12]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.lo	LBB0_18
LBB0_21:
	mov	w0, #0
	str	x20, [x19, #8]
	b	LBB0_30
LBB0_22:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_29
LBB0_23:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_27
LBB0_24:
	str	w23, [sp, #12]
	ldr	x0, [x22, x23, lsl #3]
	b	LBB0_2
LBB0_25:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_26:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_27:
	mov	x0, x20
	bl	_dev_err
LBB0_28:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alarm"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.1:                               ; @.str.1
	.asciz	"DT properties empty / missing"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GPIOD_ASIS,4,2                 ; @GPIOD_ASIS
l_.str.2:                               ; @.str.2
	.asciz	"gpio-fan,speed-map"

l_.str.3:                               ; @.str.3
	.asciz	"gpio-fan,speed-map DT property missing"

l_.str.4:                               ; @.str.4
	.asciz	"gpio-fan,speed-map contains zero/odd number of entries"

	.no_dead_strip	_gpio_fan_get_of_data
.subsections_via_symbols
