	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_max1600_init                   ## -- Begin function max1600_init
	.p2align	4, 0x90
_max1600_init:                          ## @max1600_init
	.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
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$129, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_6
## %bb.3:
	movl	$1, %r13d
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
LBB0_4:
	movq	_MAX1600_CODE_LOW@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_MAX1600_CODE_HIGH@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, 16(%rax)
	movl	%ebx, (%rax)
	movq	_MAX1600_GPIO_MAX@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_17
## %bb.11:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_max1600_gpio_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%r14,8), %rsi
	movq	_MAX1600_GPIO_0VPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	cmpq	%rax, %r14
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	callq	_devm_gpiod_get_optional
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	callq	_devm_gpiod_get
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r14,4)
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_12
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_19:
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX1600_CODE_LOW,4,2           ## @MAX1600_CODE_LOW
	.comm	_MAX1600_CODE_HIGH,4,2          ## @MAX1600_CODE_HIGH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX1600_GPIO_MAX,4,2           ## @MAX1600_GPIO_MAX
	.comm	_max1600_gpio_name,8,3          ## @max1600_gpio_name
	.comm	_MAX1600_GPIO_0VPP,4,2          ## @MAX1600_GPIO_0VPP
	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_max1600_init                   ; -- Begin function max1600_init
	.p2align	2
_max1600_init:                          ; @max1600_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_14
; %bb.2:
	mov	w23, #1
	b	LBB0_4
LBB0_3:
	mov	x23, #0
LBB0_4:
Lloh0:
	adrp	x8, _MAX1600_CODE_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX1600_CODE_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAX1600_CODE_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX1600_CODE_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w22
	ccmp	w9, w22, #4, ne
	b.ne	LBB0_14
; %bb.5:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_17
; %bb.6:
	mov	x21, x0
	str	x20, [x0, #16]
	str	w22, [x0]
Lloh9:
	adrp	x22, _MAX1600_GPIO_MAX@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MAX1600_GPIO_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.7:
	mov	x24, #0
Lloh11:
	adrp	x25, _max1600_gpio_name@GOTPAGE
Lloh12:
	ldr	x25, [x25, _max1600_gpio_name@GOTPAGEOFF]
Lloh13:
	adrp	x26, _MAX1600_GPIO_0VPP@GOTPAGE
Lloh14:
	ldr	x26, [x26, _MAX1600_GPIO_0VPP@GOTPAGEOFF]
Lloh15:
	adrp	x27, _GPIOD_OUT_LOW@GOTPAGE
Lloh16:
	ldr	x27, [x27, _GPIOD_OUT_LOW@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x1, [x8, x24, lsl #3]
	ldr	w8, [x26]
	ldr	w2, [x27]
	mov	x0, x20
	cmp	x24, x8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_devm_gpiod_get_optional
	ldr	x8, [x21, #8]
	str	w0, [x8, x24, lsl #2]
	cbz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_IS_ERR
	cbz	x0, LBB0_12
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_devm_gpiod_get
	ldr	x8, [x21, #8]
	str	w0, [x8, x24, lsl #2]
	bl	_IS_ERR
	cbnz	x0, LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_8
LBB0_13:
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_16
LBB0_14:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_18:
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x24, lsl #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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX1600_CODE_LOW,4,2           ; @MAX1600_CODE_LOW
	.comm	_MAX1600_CODE_HIGH,4,2          ; @MAX1600_CODE_HIGH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX1600_GPIO_MAX,4,2           ; @MAX1600_GPIO_MAX
	.comm	_max1600_gpio_name,8,3          ; @max1600_gpio_name
	.comm	_MAX1600_GPIO_0VPP,4,2          ; @MAX1600_GPIO_0VPP
	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
.subsections_via_symbols
