	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udd_ctrl_ep_enable
_udd_ctrl_ep_enable:                    ## @udd_ctrl_ep_enable
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_usb_device_endpoint_get_config_defaults
	movq	_USB_DEVICE_EP_CTRL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	callq	_Max
	movl	%eax, %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_Min
	leal	(%rax,%rax), %edi
	decl	%edi
	callq	_clz
	movl	$28, %ecx
	subl	%eax, %ecx
	movl	%ecx, -40(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_usb_device_endpoint_set_config
	movq	_udd_ctrl_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usb_device_endpoint_setup_buffer_job
	movq	_USB_DEVICE_ENDPOINT_CALLBACK_RXSTP@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	__usb_ep0_on_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_device_endpoint_register_callback
	movq	_USB_DEVICE_ENDPOINT_CALLBACK_TRCPT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	__usb_ep0_on_tansfer_ok@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_device_endpoint_register_callback
	movq	_USB_DEVICE_ENDPOINT_CALLBACK_TRFAIL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	__usb_ep0_on_tansfer_fail@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_device_endpoint_register_callback
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_device_endpoint_enable_callback
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_device_endpoint_enable_callback
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_device_endpoint_enable_callback
	movq	_UDD_EPCTRL_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_udd_ep_control_state@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DEVICE_EP_CTRL_SIZE,4,2    ## @USB_DEVICE_EP_CTRL_SIZE
	.comm	_udd_ctrl_buffer,4,2            ## @udd_ctrl_buffer
	.comm	_USB_DEVICE_ENDPOINT_CALLBACK_RXSTP,4,2 ## @USB_DEVICE_ENDPOINT_CALLBACK_RXSTP
	.comm	__usb_ep0_on_setup,4,2          ## @_usb_ep0_on_setup
	.comm	_USB_DEVICE_ENDPOINT_CALLBACK_TRCPT,4,2 ## @USB_DEVICE_ENDPOINT_CALLBACK_TRCPT
	.comm	__usb_ep0_on_tansfer_ok,4,2     ## @_usb_ep0_on_tansfer_ok
	.comm	_USB_DEVICE_ENDPOINT_CALLBACK_TRFAIL,4,2 ## @USB_DEVICE_ENDPOINT_CALLBACK_TRFAIL
	.comm	__usb_ep0_on_tansfer_fail,4,2   ## @_usb_ep0_on_tansfer_fail
	.comm	_UDD_EPCTRL_SETUP,4,2           ## @UDD_EPCTRL_SETUP
	.comm	_udd_ep_control_state,4,2       ## @udd_ep_control_state
	.comm	_USB_DEVICE_LPM_ACK,4,2         ## @USB_DEVICE_LPM_ACK
	.no_dead_strip	_udd_ctrl_ep_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udd_ctrl_ep_enable
_udd_ctrl_ep_enable:                    ; @udd_ctrl_ep_enable
	.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, x0
	add	x0, sp, #8
	bl	_usb_device_endpoint_get_config_defaults
Lloh0:
	adrp	x8, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_DEVICE_EP_CTRL_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #8
	bl	_Max
	mov	w1, #1024
	bl	_Min
	lsl	w8, w0, #1
	sub	w0, w8, #1
	bl	_clz
	mov	w8, #28
	sub	w8, w8, w0
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_usb_device_endpoint_set_config
Lloh3:
	adrp	x8, _udd_ctrl_buffer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _udd_ctrl_buffer@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_device_endpoint_setup_buffer_job
Lloh6:
	adrp	x20, _USB_DEVICE_ENDPOINT_CALLBACK_RXSTP@GOTPAGE
Lloh7:
	ldr	x20, [x20, _USB_DEVICE_ENDPOINT_CALLBACK_RXSTP@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh8:
	adrp	x8, __usb_ep0_on_setup@GOTPAGE
Lloh9:
	ldr	x8, [x8, __usb_ep0_on_setup@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_device_endpoint_register_callback
Lloh11:
	adrp	x21, _USB_DEVICE_ENDPOINT_CALLBACK_TRCPT@GOTPAGE
Lloh12:
	ldr	x21, [x21, _USB_DEVICE_ENDPOINT_CALLBACK_TRCPT@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh13:
	adrp	x8, __usb_ep0_on_tansfer_ok@GOTPAGE
Lloh14:
	ldr	x8, [x8, __usb_ep0_on_tansfer_ok@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_device_endpoint_register_callback
Lloh16:
	adrp	x22, _USB_DEVICE_ENDPOINT_CALLBACK_TRFAIL@GOTPAGE
Lloh17:
	ldr	x22, [x22, _USB_DEVICE_ENDPOINT_CALLBACK_TRFAIL@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh18:
	adrp	x8, __usb_ep0_on_tansfer_fail@GOTPAGE
Lloh19:
	ldr	x8, [x8, __usb_ep0_on_tansfer_fail@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_device_endpoint_register_callback
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_device_endpoint_enable_callback
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_device_endpoint_enable_callback
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_device_endpoint_enable_callback
Lloh21:
	adrp	x8, _UDD_EPCTRL_SETUP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UDD_EPCTRL_SETUP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _udd_ep_control_state@GOTPAGE
Lloh25:
	ldr	x9, [x9, _udd_ep_control_state@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
	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 AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DEVICE_EP_CTRL_SIZE,4,2    ; @USB_DEVICE_EP_CTRL_SIZE
	.comm	_udd_ctrl_buffer,4,2            ; @udd_ctrl_buffer
	.comm	_USB_DEVICE_ENDPOINT_CALLBACK_RXSTP,4,2 ; @USB_DEVICE_ENDPOINT_CALLBACK_RXSTP
	.comm	__usb_ep0_on_setup,4,2          ; @_usb_ep0_on_setup
	.comm	_USB_DEVICE_ENDPOINT_CALLBACK_TRCPT,4,2 ; @USB_DEVICE_ENDPOINT_CALLBACK_TRCPT
	.comm	__usb_ep0_on_tansfer_ok,4,2     ; @_usb_ep0_on_tansfer_ok
	.comm	_USB_DEVICE_ENDPOINT_CALLBACK_TRFAIL,4,2 ; @USB_DEVICE_ENDPOINT_CALLBACK_TRFAIL
	.comm	__usb_ep0_on_tansfer_fail,4,2   ; @_usb_ep0_on_tansfer_fail
	.comm	_UDD_EPCTRL_SETUP,4,2           ; @UDD_EPCTRL_SETUP
	.comm	_udd_ep_control_state,4,2       ; @udd_ep_control_state
	.comm	_USB_DEVICE_LPM_ACK,4,2         ; @USB_DEVICE_LPM_ACK
	.no_dead_strip	_udd_ctrl_ep_enable
.subsections_via_symbols
