	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tps65010_set_gpio_out_value    ## -- Begin function tps65010_set_gpio_out_value
	.p2align	4, 0x90
_tps65010_set_gpio_out_value:           ## @tps65010_set_gpio_out_value
	.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	%edi, %ebx
	movq	_the_tps@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	_GPIO1@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	ja	LBB0_5
## %bb.4:
	movq	_GPIO4@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jb	LBB0_5
## %bb.6:
	movl	%esi, %r14d
	callq	_mutex_lock
	movq	(%r13), %rax
	movl	4(%rax), %edi
	movq	_TPS_DEFGPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r15
	callq	_i2c_smbus_read_byte_data
	leal	3(%rbx), %ecx
	btsl	%ecx, %eax
	leal	-1(%rbx), %ecx
	movl	%eax, %edx
	btsl	%ecx, %edx
	btrl	%ecx, %eax
	cmpl	$128, %r14d
	cmovnel	%eax, %edx
	movq	(%r13), %rax
	movl	4(%rax), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r15d
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %r14
	cmoveq	%rcx, %r14
	movl	(%rax), %r12d
	movq	(%r13), %rax
	movl	4(%rax), %edi
	movq	_TPS_DEFGPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_pr_debug
	movq	(%r13), %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_tps,8,3                    ## @the_tps
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GPIO1,4,2                      ## @GPIO1
	.comm	_GPIO4,4,2                      ## @GPIO4
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TPS_DEFGPIO,4,2                ## @TPS_DEFGPIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: gpio%dout = %s, defgpio 0x%02x\n"

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
L_.str.1:                               ## @.str.1
	.asciz	"high"

L_.str.2:                               ## @.str.2
	.asciz	"low"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tps65010_set_gpio_out_value    ; -- Begin function tps65010_set_gpio_out_value
	.p2align	2
_tps65010_set_gpio_out_value:           ; @tps65010_set_gpio_out_value
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _the_tps@GOTPAGE
Lloh1:
	ldr	x23, [x23, _the_tps@GOTPAGEOFF]
	ldr	x0, [x23]
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _GPIO1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GPIO4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GPIO4@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #0, ls
	b.hs	LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x20, x1
	bl	_mutex_lock
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
Lloh12:
	adrp	x24, _TPS_DEFGPIO@GOTPAGE
Lloh13:
	ldr	x24, [x24, _TPS_DEFGPIO@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_byte_data
	add	w8, w19, #3
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w8, w0, w8
	sub	w10, w19, #1
	lsl	w9, w9, w10
	orr	w10, w8, w9
	bic	w8, w8, w9
	cmp	w20, #128
	csel	w2, w10, w8, eq
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	ldr	w1, [x24]
	bl	_i2c_smbus_write_byte_data
	mov	x21, x0
Lloh14:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh16:
	adrp	x9, l_.str.1@PAGE
Lloh17:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh18:
	adrp	x10, l_.str.2@PAGE
Lloh19:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh20:
	ldr	w22, [x8]
	cmp	w20, #0
	csel	x20, x10, x9, eq
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	ldr	w1, [x24]
	bl	_i2c_smbus_read_byte_data
	mov	x4, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_pr_debug
	ldr	x0, [x23]
	bl	_mutex_unlock
	mov	x0, x21
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh20
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_the_tps,8,3                    ; @the_tps
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GPIO1,4,2                      ; @GPIO1
	.comm	_GPIO4,4,2                      ; @GPIO4
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TPS_DEFGPIO,4,2                ; @TPS_DEFGPIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: gpio%dout = %s, defgpio 0x%02x\n"

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
l_.str.1:                               ; @.str.1
	.asciz	"high"

l_.str.2:                               ; @.str.2
	.asciz	"low"

.subsections_via_symbols
