	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elo_smartset_send_get
_elo_smartset_send_get:                 ## @elo_smartset_send_get
	.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	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_ELO_SEND_SMARTSET_COMMAND@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	_ELO_GET_SMARTSET_RESPONSE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdx
LBB0_4:
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_ELO_SMARTSET_PACKET_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_ELO_SMARTSET_CMD_TIMEOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%r10
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELO_SEND_SMARTSET_COMMAND,4,2  ## @ELO_SEND_SMARTSET_COMMAND
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_ELO_GET_SMARTSET_RESPONSE,4,2  ## @ELO_GET_SMARTSET_RESPONSE
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_ELO_SMARTSET_PACKET_SIZE,4,2   ## @ELO_SMARTSET_PACKET_SIZE
	.comm	_ELO_SMARTSET_CMD_TIMEOUT,4,2   ## @ELO_SMARTSET_CMD_TIMEOUT
	.no_dead_strip	_elo_smartset_send_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elo_smartset_send_get
_elo_smartset_send_get:                 ; @elo_smartset_send_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ELO_SEND_SMARTSET_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELO_SEND_SMARTSET_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _ELO_GET_SMARTSET_RESPONSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ELO_GET_SMARTSET_RESPONSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh8:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh16:
	adrp	x8, _ELO_SMARTSET_PACKET_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ELO_SMARTSET_PACKET_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w7, [x8]
Lloh19:
	adrp	x8, _ELO_SMARTSET_CMD_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ELO_SMARTSET_CMD_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x20
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	bl	_usb_control_msg
	b	LBB0_6
LBB0_5:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ELO_SEND_SMARTSET_COMMAND,4,2  ; @ELO_SEND_SMARTSET_COMMAND
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_ELO_GET_SMARTSET_RESPONSE,4,2  ; @ELO_GET_SMARTSET_RESPONSE
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_ELO_SMARTSET_PACKET_SIZE,4,2   ; @ELO_SMARTSET_PACKET_SIZE
	.comm	_ELO_SMARTSET_CMD_TIMEOUT,4,2   ; @ELO_SMARTSET_CMD_TIMEOUT
	.no_dead_strip	_elo_smartset_send_get
.subsections_via_symbols
