	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function loadfirmware
_loadfirmware:                          ## @loadfirmware
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	%rsi, %r15
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	cmpb	$58, (%r15)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	7(%r15), %rdi
	movl	$2, %esi
	callq	_atoh
                                        ## kill: def $eax killed $eax def $rax
	xorl	%r14d, %r14d
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	9(%r15), %rdi
	movl	$4, %esi
	callq	_atoh
	movl	%eax, %r12d
	shll	$4, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	jne	LBB0_16
	jmp	LBB0_17
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	9(%r15), %rdi
	movl	$4, %esi
	callq	_atoh
	movl	%eax, %r13d
	shll	$16, %r13d
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	9(%r15), %rdi
	movl	$8, %esi
	callq	_atoh
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_SEND_GOTO
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	movq	_EACCES@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r12,%r13), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_senddata
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rbx), %eax
	cmpb	$10, (%r15)
	leaq	1(%r15), %r15
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	$1, %ebx
	movl	%eax, %ebx
	jne	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	je	LBB0_3
	jmp	LBB0_17
LBB0_1:
	xorl	%r14d, %r14d
LBB0_17:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_snd_printdd
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_17
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_EACCES,4,2                     ## @EACCES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"load firmware return %d\n"

	.no_dead_strip	_loadfirmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function loadfirmware
_loadfirmware:                          ; @loadfirmware
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	w2, LBB0_15
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w25, #0
	mov	w26, #0
Lloh0:
	adrp	x23, _EACCES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EACCES@GOTPAGEOFF]
Lloh2:
	adrp	x24, lJTI0_0@PAGE
Lloh3:
	add	x24, x24, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldrb	w8, [x19]
	cmp	w8, #58
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x19, #7
	mov	w1, #2
	bl	_atoh
	mov	w22, #0
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_5
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x19, #9
	mov	w1, #4
	bl	_atoh
	mov	w22, #0
	lsl	w25, w0, #4
	b	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #0
	b	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x19, #9
	mov	w1, #4
	bl	_atoh
	mov	w22, #0
	lsl	w26, w0, #16
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x19, #9
	mov	w1, #8
	bl	_atoh
	mov	x1, x0
	mov	x0, x20
	bl	_SEND_GOTO
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	neg	w22, w8
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w2, w25, w26
	mov	x0, x20
	mov	x1, x19
	bl	_senddata
	mov	x22, x0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w22, #0
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x19], #1
	cmp	w8, #10
	ccmp	w21, #1, #4, ne
	sub	w21, w21, #1
	b.ne	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w21, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	w22, LBB0_2
	b	LBB0_16
LBB0_15:
	mov	w22, #0
LBB0_16:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_snd_printdd
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
                                        ; -- End function
	.comm	_EACCES,4,2                     ; @EACCES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"load firmware return %d\n"

	.no_dead_strip	_loadfirmware
.subsections_via_symbols
