	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_std_serial_write_data
_hso_std_serial_write_data:             ## @hso_std_serial_write_data
	.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
	movl	(%rdi), %r14d
	movl	16(%rdi), %r15d
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movq	24(%rdi), %rax
	movl	(%rax), %esi
	andl	$127, %esi
	movq	%r12, %rdi
	callq	_usb_sndbulkpipe
	movl	(%rbx), %r8d
	movl	20(%rbx), %ecx
	movq	_hso_std_serial_write_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%rbx, (%rsp)
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movl	16(%rbx), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	movl	%r15d, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hso_std_serial_write_bulk_callback,4,2 ## @hso_std_serial_write_bulk_callback
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to submit urb - res %d\n"

	.no_dead_strip	_hso_std_serial_write_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_std_serial_write_data
_hso_std_serial_write_data:             ; @hso_std_serial_write_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	w19, [x0]
	ldr	w21, [x0, #16]
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	and	w1, w8, #0x7f
	mov	x0, x22
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	w3, [x20, #20]
	ldr	w4, [x20]
Lloh0:
	adrp	x8, _hso_std_serial_write_bulk_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hso_std_serial_write_bulk_callback@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	ldr	w0, [x20, #16]
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
	mov	x19, x21
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hso_std_serial_write_bulk_callback,4,2 ; @hso_std_serial_write_bulk_callback
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to submit urb - res %d\n"

	.no_dead_strip	_hso_std_serial_write_data
.subsections_via_symbols
