	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp2112_gpio_get_all
_cp2112_gpio_get_all:                   ## @cp2112_gpio_get_all
	.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
	callq	_gpiochip_get_data
	movq	%rax, %r13
	movq	(%rax), %r15
	movq	16(%rax), %r14
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_CP2112_GPIO_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CP2112_GPIO_GET_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_hid_hw_raw_request
	cmpl	(%rbx), %eax
	jne	LBB0_1
## %bb.2:
	movl	4(%r15), %ebx
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hid_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%r12d, %r12d
	cmovsl	%r12d, %ebx
LBB0_3:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP2112_GPIO_GET,4,2            ## @CP2112_GPIO_GET
	.comm	_CP2112_GPIO_GET_LENGTH,4,2     ## @CP2112_GPIO_GET_LENGTH
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error requesting GPIO values: %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cp2112_gpio_get_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp2112_gpio_get_all
_cp2112_gpio_get_all:                   ; @cp2112_gpio_get_all
	.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
	bl	_gpiochip_get_data
	ldr	x20, [x0, #16]
	ldr	x21, [x0]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _CP2112_GPIO_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP2112_GPIO_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x23, _CP2112_GPIO_GET_LENGTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CP2112_GPIO_GET_LENGTH@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh5:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_hid_hw_raw_request
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w20, [x21, #4]
	b	LBB0_3
LBB0_2:
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_hid_err
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w22, #0
	csneg	w20, w22, w8, lt
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CP2112_GPIO_GET,4,2            ; @CP2112_GPIO_GET
	.comm	_CP2112_GPIO_GET_LENGTH,4,2     ; @CP2112_GPIO_GET_LENGTH
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error requesting GPIO values: %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cp2112_gpio_get_all
.subsections_via_symbols
