	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm1026_fixup_gpio
_adm1026_fixup_gpio:                    ## @adm1026_fixup_gpio
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	_gpio_output@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rax
	addq	$8, %rax
	xorl	%esi, %esi
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rsi
	cmpq	$17, %rsi
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %ecx
	cmpq	$16, %rcx
	ja	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rdi
	orl	$1, (%rdi,%rcx,4)
	movl	(%rdx,%rsi,4), %ecx
	cmpl	$7, %ecx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%edi, (%rax)
	jmp	LBB0_4
LBB0_5:
	movq	_gpio_input@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	$17, %rsi
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %ecx
	cmpq	$16, %rcx
	ja	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rdi
	andl	$-2, (%rdi,%rcx,4)
	movl	(%rdx,%rsi,4), %ecx
	cmpl	$7, %ecx
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	orl	%edi, (%rax)
	jmp	LBB0_9
LBB0_10:
	movq	_gpio_inverted@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$2, %rdx
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	cmpq	$16, %rsi
	ja	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %rdi
	andl	$-3, (%rdi,%rsi,4)
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$16, %rdx
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	4(%rcx,%rdx,4), %esi
	cmpq	$16, %rsi
	ja	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r15), %rdi
	andl	$-3, (%rdi,%rsi,4)
	jmp	LBB0_16
LBB0_17:
	movq	_gpio_normal@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	addq	$2, %rdx
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	cmpq	$16, %rsi
	ja	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r15), %rdi
	orl	$2, (%rdi,%rsi,4)
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$16, %rdx
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	4(%rcx,%rdx,4), %esi
	cmpq	$16, %rsi
	ja	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	(%r15), %rdi
	orl	$2, (%rdi,%rsi,4)
	jmp	LBB0_23
LBB0_24:
	movq	_gpio_fan@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	(%rdx), %ecx
	cmpl	$8, %ecx
	jae	LBB0_26
## %bb.25:
	movl	$-2, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %esi
	andl	%esi, (%rax)
LBB0_26:
	movl	4(%rdx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_28
## %bb.27:
	movl	$-2, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %esi
	andl	%esi, (%rax)
LBB0_28:
	movl	8(%rdx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_30
## %bb.29:
	movl	$-2, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %esi
	andl	%esi, (%rax)
LBB0_30:
	movl	12(%rdx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_32
## %bb.31:
	movl	$-2, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %esi
	andl	%esi, (%rax)
LBB0_32:
	movl	16(%rdx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_34
## %bb.33:
	movl	$-2, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %esi
	andl	%esi, (%rax)
LBB0_34:
	movl	20(%rdx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_36
## %bb.35:
	movl	$-2, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %esi
	andl	%esi, (%rax)
LBB0_36:
	movl	24(%rdx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_38
## %bb.37:
	movl	$-2, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %esi
	andl	%esi, (%rax)
LBB0_38:
	movl	28(%rdx), %ecx
	cmpl	$8, %ecx
	jae	LBB0_39
## %bb.40:
	movl	(%rax), %edx
	btrl	%ecx, %edx
	movl	%edx, (%rax)
	jmp	LBB0_41
LBB0_39:
	movl	(%rax), %edx
LBB0_41:
	movq	_ADM1026_REG_CONFIG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_adm1026_write_value
	movl	12(%r15), %eax
	andl	$63, %eax
	movq	(%r15), %rcx
	movl	64(%rcx), %ecx
	shll	$6, %ecx
	movzbl	%cl, %edx
	orl	%eax, %edx
	movl	%edx, 12(%r15)
	movq	_ADM1026_REG_CONFIG3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_adm1026_write_value
	xorl	%edx, %edx
	movl	$15, %ebx
	movq	_ADM1026_REG_GPIO_CFG_0_3@GOTPCREL(%rip), %r12
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_42 Depth=1
	addq	$-1, %rbx
	jae	LBB0_45
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %eax
	andl	$3, %eax
	leal	(%rax,%rdx,4), %edx
	testb	$3, %bl
	jne	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movl	%ebx, %esi
	shrl	$2, %esi
	addq	(%r12), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_adm1026_write_value
	xorl	%edx, %edx
	jmp	LBB0_44
LBB0_45:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adm1026_print_gpio             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gpio_output,8,3                ## @gpio_output
	.comm	_gpio_input,8,3                 ## @gpio_input
	.comm	_gpio_inverted,8,3              ## @gpio_inverted
	.comm	_gpio_normal,8,3                ## @gpio_normal
	.comm	_gpio_fan,8,3                   ## @gpio_fan
	.comm	_ADM1026_REG_CONFIG2,8,3        ## @ADM1026_REG_CONFIG2
	.comm	_ADM1026_REG_CONFIG3,8,3        ## @ADM1026_REG_CONFIG3
	.comm	_ADM1026_REG_GPIO_CFG_0_3,8,3   ## @ADM1026_REG_GPIO_CFG_0_3
	.no_dead_strip	_adm1026_fixup_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm1026_fixup_gpio
_adm1026_fixup_gpio:                    ; @adm1026_fixup_gpio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	mov	x9, #0
Lloh0:
	adrp	x8, _gpio_output@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gpio_output@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	add	x8, x0, #8
	mov	w11, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #4
	cmp	x9, #68
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x9]
	cmp	w12, #16
	b.hi	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x13, [x20]
	lsl	x12, x12, #2
	ldr	w14, [x13, x12]
	orr	w14, w14, #0x1
	str	w14, [x13, x12]
	ldr	w12, [x10, x9]
	cmp	w12, #7
	b.hi	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w12, w11, w12
	ldr	w13, [x8]
	orr	w12, w13, w12
	str	w12, [x8]
	b	LBB0_1
LBB0_5:
	mov	x9, #0
Lloh3:
	adrp	x10, _gpio_input@GOTPAGE
Lloh4:
	ldr	x10, [x10, _gpio_input@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #4
	cmp	x9, #68
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x9]
	cmp	w12, #16
	b.hi	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x13, [x20]
	lsl	x12, x12, #2
	ldr	w14, [x13, x12]
	and	w14, w14, #0xfffffffe
	str	w14, [x13, x12]
	ldr	w12, [x10, x9]
	cmp	w12, #7
	b.hi	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	lsl	w12, w11, w12
	ldr	w13, [x8]
	orr	w12, w13, w12
	str	w12, [x8]
	b	LBB0_6
LBB0_10:
	mov	x9, #0
Lloh6:
	adrp	x10, _gpio_inverted@GOTPAGE
Lloh7:
	ldr	x10, [x10, _gpio_inverted@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #4
	cmp	x9, #68
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9]
	cmp	w11, #16
	b.hi	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x12, [x20]
	lsl	x11, x11, #2
	ldr	w13, [x12, x11]
	and	w13, w13, #0xfffffffd
	str	w13, [x12, x11]
	b	LBB0_11
LBB0_14:
	mov	x9, #0
Lloh9:
	adrp	x10, _gpio_normal@GOTPAGE
Lloh10:
	ldr	x10, [x10, _gpio_normal@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x9, x9, #4
	cmp	x9, #68
	b.eq	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9]
	cmp	w11, #16
	b.hi	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x12, [x20]
	lsl	x11, x11, #2
	ldr	w13, [x12, x11]
	orr	w13, w13, #0x2
	str	w13, [x12, x11]
	b	LBB0_15
LBB0_18:
Lloh12:
	adrp	x9, _gpio_fan@GOTPAGE
Lloh13:
	ldr	x9, [x9, _gpio_fan@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w10, [x9]
	cmp	w10, #8
	b.hs	LBB0_20
; %bb.19:
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
LBB0_20:
	ldr	w10, [x9, #4]
	cmp	w10, #7
	b.hi	LBB0_22
; %bb.21:
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
LBB0_22:
	ldr	w10, [x9, #8]
	cmp	w10, #7
	b.hi	LBB0_24
; %bb.23:
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
LBB0_24:
	ldr	w10, [x9, #12]
	cmp	w10, #7
	b.hi	LBB0_26
; %bb.25:
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
LBB0_26:
	ldr	w10, [x9, #16]
	cmp	w10, #7
	b.hi	LBB0_28
; %bb.27:
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
LBB0_28:
	ldr	w10, [x9, #20]
	cmp	w10, #7
	b.hi	LBB0_30
; %bb.29:
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
LBB0_30:
	ldr	w10, [x9, #24]
	cmp	w10, #7
	b.hi	LBB0_32
; %bb.31:
	mov	w11, #1
	lsl	w10, w11, w10
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
LBB0_32:
	ldr	w9, [x9, #28]
	cmp	w9, #8
	b.hs	LBB0_34
; %bb.33:
	mov	w10, #1
	lsl	w9, w10, w9
	ldr	w10, [x8]
	bic	w2, w10, w9
	str	w2, [x8]
	b	LBB0_35
LBB0_34:
	ldr	w2, [x8]
LBB0_35:
Lloh15:
	adrp	x8, _ADM1026_REG_CONFIG2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADM1026_REG_CONFIG2@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_adm1026_write_value
	ldr	w8, [x20, #12]
	and	w2, w8, #0x3f
	ldr	x8, [x20]
	ldr	w8, [x8, #64]
	bfi	w2, w8, #6, #2
	str	w2, [x20, #12]
Lloh18:
	adrp	x8, _ADM1026_REG_CONFIG3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADM1026_REG_CONFIG3@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_adm1026_write_value
	mov	w8, #0
	mov	w21, #15
Lloh21:
	adrp	x22, _ADM1026_REG_GPIO_CFG_0_3@GOTPAGE
Lloh22:
	ldr	x22, [x22, _ADM1026_REG_GPIO_CFG_0_3@GOTPAGEOFF]
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=1
	sub	x21, x21, #1
	mov	x8, x2
	cmn	x21, #1
	b.eq	LBB0_39
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	w2, [x9, x21, lsl #2]
	bfi	w2, w8, #2, #30
	tst	x21, #0x3
	b.ne	LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	ldr	x8, [x22]
	ubfx	x9, x21, #2, #30
	add	x1, x8, x9
	mov	x0, x19
	bl	_adm1026_write_value
	mov	w2, #0
	b	LBB0_36
LBB0_39:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_adm1026_print_gpio
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_gpio_output,8,3                ; @gpio_output
	.comm	_gpio_input,8,3                 ; @gpio_input
	.comm	_gpio_inverted,8,3              ; @gpio_inverted
	.comm	_gpio_normal,8,3                ; @gpio_normal
	.comm	_gpio_fan,8,3                   ; @gpio_fan
	.comm	_ADM1026_REG_CONFIG2,8,3        ; @ADM1026_REG_CONFIG2
	.comm	_ADM1026_REG_CONFIG3,8,3        ; @ADM1026_REG_CONFIG3
	.comm	_ADM1026_REG_GPIO_CFG_0_3,8,3   ; @ADM1026_REG_GPIO_CFG_0_3
	.no_dead_strip	_adm1026_fixup_gpio
.subsections_via_symbols
