	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kone_get_profile
_kone_get_profile:                      ## @kone_get_profile
	.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
	movl	%edx, %r15d
	leal	-6(%r15), %eax
	cmpl	$-6, %eax
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_REQ_CLEAR_FEATURE@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rsi
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movl	(%rdx), %edx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_kone_command_profile@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	_USB_CTRL_SET_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r15d, %r9d
	pushq	%r10
	pushq	$4
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	cmpl	$4, %eax
	je	LBB0_5
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_USB_REQ_CLEAR_FEATURE,4,2      ## @USB_REQ_CLEAR_FEATURE
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_kone_command_profile,4,2       ## @kone_command_profile
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ## @USB_CTRL_SET_TIMEOUT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_kone_get_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kone_get_profile
_kone_get_profile:                      ; @kone_get_profile
	.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
	sub	w8, w2, #6
	cmn	w8, #6
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh2:
	adrp	x8, _USB_REQ_CLEAR_FEATURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_REQ_CLEAR_FEATURE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _USB_TYPE_CLASS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh14:
	adrp	x8, _kone_command_profile@GOTPAGE
Lloh15:
	ldr	x8, [x8, _kone_command_profile@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x8, _USB_CTRL_SET_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_CTRL_SET_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	x5, x20
	mov	x6, x19
	mov	w7, #4
	bl	_usb_control_msg
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #4
	b.eq	LBB0_5
; %bb.3:
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_USB_REQ_CLEAR_FEATURE,4,2      ; @USB_REQ_CLEAR_FEATURE
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_kone_command_profile,4,2       ; @kone_command_profile
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ; @USB_CTRL_SET_TIMEOUT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_kone_get_profile
.subsections_via_symbols
