	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp2112_gpio_set
_cp2112_gpio_set:                       ## @cp2112_gpio_set
	.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	%edx, %r12d
	movl	%esi, %r13d
	callq	_gpiochip_get_data
	movq	%rax, %rbx
	movq	(%rax), %r15
	movq	16(%rax), %r14
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_CP2112_GPIO_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	testl	%r12d, %r12d
	movl	$255, %ecx
	cmovel	%r12d, %ecx
	movl	%ecx, 4(%r15)
	movl	$1, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	movl	%edx, 8(%r15)
	movl	(%rax), %esi
	movq	_CP2112_GPIO_SET_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_hid_hw_raw_request
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hid_err
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CP2112_GPIO_SET,4,2            ## @CP2112_GPIO_SET
	.comm	_CP2112_GPIO_SET_LENGTH,4,2     ## @CP2112_GPIO_SET_LENGTH
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error setting GPIO values: %d\n"

	.no_dead_strip	_cp2112_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp2112_gpio_set
_cp2112_gpio_set:                       ; @cp2112_gpio_set
	.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	x21, x2
	mov	x22, x1
	bl	_gpiochip_get_data
	ldr	x20, [x0, #16]
	ldr	x23, [x0]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _CP2112_GPIO_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP2112_GPIO_SET@GOTPAGEOFF]
	ldr	w9, [x8]
	mov	w10, #255
	cmp	w21, #0
	csel	w10, wzr, w10, eq
	stp	w9, w10, [x23]
	mov	w9, #1
	lsl	w9, w9, w22
	str	w9, [x23, #8]
	ldr	w1, [x8]
Lloh2:
	adrp	x8, _CP2112_GPIO_SET_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CP2112_GPIO_SET_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_hid_hw_raw_request
	tbz	w0, #31, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_err
LBB0_2:
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CP2112_GPIO_SET,4,2            ; @CP2112_GPIO_SET
	.comm	_CP2112_GPIO_SET_LENGTH,4,2     ; @CP2112_GPIO_SET_LENGTH
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error setting GPIO values: %d\n"

	.no_dead_strip	_cp2112_gpio_set
.subsections_via_symbols
