	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _set_protocol
__set_protocol:                         ## @_set_protocol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	__kbd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	%edi, %ecx
	movl	(%rax), %edi
	cmpl	$-1, %edi
	je	LBB0_3
## %bb.2:
	movq	_USB_REQTYPE_INTERFACE_SET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_USB_REQ_SETPROTOCOL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	4(%rax), %r8d
	movq	$0, (%rsp)
	xorl	%r9d, %r9d
	callq	_USB_WriteCtrlMsg
	jmp	LBB0_4
LBB0_3:
	movl	$-1, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__kbd,8,3                       ## @_kbd
	.comm	_USB_REQTYPE_INTERFACE_SET,4,2  ## @USB_REQTYPE_INTERFACE_SET
	.comm	_USB_REQ_SETPROTOCOL,4,2        ## @USB_REQ_SETPROTOCOL
	.no_dead_strip	__set_protocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _set_protocol
__set_protocol:                         ; @_set_protocol
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, __kbd@GOTPAGE
Lloh1:
	ldr	x8, [x8, __kbd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x3, x0
	ldr	w0, [x8]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _USB_REQTYPE_INTERFACE_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_REQTYPE_INTERFACE_SET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _USB_REQ_SETPROTOCOL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_REQ_SETPROTOCOL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	ldr	w4, [x8, #4]
	mov	w5, #0
	mov	x6, #0
	b	_USB_WriteCtrlMsg
LBB0_3:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__kbd,8,3                       ; @_kbd
	.comm	_USB_REQTYPE_INTERFACE_SET,4,2  ; @USB_REQTYPE_INTERFACE_SET
	.comm	_USB_REQ_SETPROTOCOL,4,2        ; @USB_REQ_SETPROTOCOL
	.no_dead_strip	__set_protocol
.subsections_via_symbols
