	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udl_select_std_channel
_udl_select_std_channel:                ## @udl_select_std_channel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_udl_select_std_channel.set_def_chn(%rip), %rdi
	movl	$64, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movl	(%r14), %r14d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_NR_USB_REQUEST_CHANNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_USB_CTRL_SET_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	subq	$8, %rsp
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$64
	pushq	%r15
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @udl_select_std_channel.set_def_chn
_udl_select_std_channel.set_def_chn:
	.long	87                              ## 0x57
	.long	205                             ## 0xcd
	.long	220                             ## 0xdc
	.long	167                             ## 0xa7
	.long	28                              ## 0x1c
	.long	136                             ## 0x88
	.long	94                              ## 0x5e
	.long	21                              ## 0x15
	.long	96                              ## 0x60
	.long	254                             ## 0xfe
	.long	198                             ## 0xc6
	.long	151                             ## 0x97
	.long	22                              ## 0x16
	.long	61                              ## 0x3d
	.long	71                              ## 0x47
	.long	242                             ## 0xf2

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NR_USB_REQUEST_CHANNEL,4,2     ## @NR_USB_REQUEST_CHANNEL
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ## @USB_CTRL_SET_TIMEOUT
	.no_dead_strip	_udl_select_std_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udl_select_std_channel
_udl_select_std_channel:                ; @udl_select_std_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x0, _udl_select_std_channel.set_def_chn@PAGE
Lloh4:
	add	x0, x0, _udl_select_std_channel.set_def_chn@PAGEOFF
	mov	w1, #64
	bl	_kmemdup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w20, [x20]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh5:
	adrp	x8, _NR_USB_REQUEST_CHANNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NR_USB_REQUEST_CHANNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh10:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh14:
	adrp	x8, _USB_CTRL_SET_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _USB_CTRL_SET_TIMEOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x20
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	mov	w7, #64
	bl	_usb_control_msg
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	cmp	w20, #0
	csel	w0, w20, wzr, lt
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @udl_select_std_channel.set_def_chn
_udl_select_std_channel.set_def_chn:
	.long	87                              ; 0x57
	.long	205                             ; 0xcd
	.long	220                             ; 0xdc
	.long	167                             ; 0xa7
	.long	28                              ; 0x1c
	.long	136                             ; 0x88
	.long	94                              ; 0x5e
	.long	21                              ; 0x15
	.long	96                              ; 0x60
	.long	254                             ; 0xfe
	.long	198                             ; 0xc6
	.long	151                             ; 0x97
	.long	22                              ; 0x16
	.long	61                              ; 0x3d
	.long	71                              ; 0x47
	.long	242                             ; 0xf2

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NR_USB_REQUEST_CHANNEL,4,2     ; @NR_USB_REQUEST_CHANNEL
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_CTRL_SET_TIMEOUT,4,2       ; @USB_CTRL_SET_TIMEOUT
	.no_dead_strip	_udl_select_std_channel
.subsections_via_symbols
