	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hss_load_firmware
_hss_load_firmware:                     ## @hss_load_firmware
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_npe_running
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	12(%rbx), %r14d
	movl	%r14d, %edi
	callq	_npe_name
	movl	8(%rbx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_npe_load_firmware
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
LBB0_3:
	leaq	-48(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	_PKT_NUM_PIPES_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_PKT_NUM_PIPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hss_npe_send
	movq	_PKT_PIPE_FIFO_SIZEW_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_PKT_PIPE_FIFO_SIZEW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hss_npe_send
	movq	_PKT_PIPE_MODE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_NPE_PKT_MODE_HDLC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hss_npe_send
	movq	_PKT_PIPE_RX_SIZE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_HDLC_MAX_MRU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hss_npe_send
	movq	_PKT_PIPE_IDLE_PATTERN_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	$2139062143, -48(%rbp)          ## imm = 0x7F7F7F7F
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hss_npe_send
	movl	$1, (%rbx)
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_NUM_PIPES_WRITE,4,2        ## @PKT_NUM_PIPES_WRITE
	.comm	_PKT_NUM_PIPES,4,2              ## @PKT_NUM_PIPES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HSS_SET_PKT_PIPES"

	.comm	_PKT_PIPE_FIFO_SIZEW_WRITE,4,2  ## @PKT_PIPE_FIFO_SIZEW_WRITE
	.comm	_PKT_PIPE_FIFO_SIZEW,4,2        ## @PKT_PIPE_FIFO_SIZEW
L_.str.1:                               ## @.str.1
	.asciz	"HSS_SET_PKT_FIFO"

	.comm	_PKT_PIPE_MODE_WRITE,4,2        ## @PKT_PIPE_MODE_WRITE
	.comm	_NPE_PKT_MODE_HDLC,4,2          ## @NPE_PKT_MODE_HDLC
L_.str.2:                               ## @.str.2
	.asciz	"HSS_SET_PKT_MODE"

	.comm	_PKT_PIPE_RX_SIZE_WRITE,4,2     ## @PKT_PIPE_RX_SIZE_WRITE
	.comm	_HDLC_MAX_MRU,4,2               ## @HDLC_MAX_MRU
L_.str.3:                               ## @.str.3
	.asciz	"HSS_SET_PKT_RX_SIZE"

	.comm	_PKT_PIPE_IDLE_PATTERN_WRITE,4,2 ## @PKT_PIPE_IDLE_PATTERN_WRITE
L_.str.4:                               ## @.str.4
	.asciz	"HSS_SET_PKT_IDLE"

	.no_dead_strip	_hss_load_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hss_load_firmware
_hss_load_firmware:                     ; @hss_load_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_npe_running
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w20, [x19, #12]
	mov	x0, x20
	bl	_npe_name
	mov	x1, x0
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_npe_load_firmware
	cbnz	w0, LBB0_5
LBB0_4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
Lloh0:
	adrp	x8, _PKT_NUM_PIPES_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKT_NUM_PIPES_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	str	w9, [sp, #24]
Lloh3:
	adrp	x9, _PKT_NUM_PIPES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PKT_NUM_PIPES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w8, [sp, #12]
	str	w9, [sp, #20]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_hss_npe_send
Lloh8:
	adrp	x8, _PKT_PIPE_FIFO_SIZEW_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PKT_PIPE_FIFO_SIZEW_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PKT_PIPE_FIFO_SIZEW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PKT_PIPE_FIFO_SIZEW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w8, [sp, #12]
	str	w9, [sp, #20]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_hss_npe_send
Lloh16:
	adrp	x8, _PKT_PIPE_MODE_WRITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PKT_PIPE_MODE_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _NPE_PKT_MODE_HDLC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NPE_PKT_MODE_HDLC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	str	w8, [sp, #12]
	str	w9, [sp, #20]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_hss_npe_send
Lloh24:
	adrp	x8, _PKT_PIPE_RX_SIZE_WRITE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PKT_PIPE_RX_SIZE_WRITE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _HDLC_MAX_MRU@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HDLC_MAX_MRU@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #12]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_hss_npe_send
Lloh32:
	adrp	x8, _PKT_PIPE_IDLE_PATTERN_WRITE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PKT_PIPE_IDLE_PATTERN_WRITE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	mov	w9, #2139062143
	stp	w9, w8, [sp, #8]
Lloh35:
	adrp	x2, l_.str.4@PAGE
Lloh36:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	bl	_hss_npe_send
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_NUM_PIPES_WRITE,4,2        ; @PKT_NUM_PIPES_WRITE
	.comm	_PKT_NUM_PIPES,4,2              ; @PKT_NUM_PIPES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HSS_SET_PKT_PIPES"

	.comm	_PKT_PIPE_FIFO_SIZEW_WRITE,4,2  ; @PKT_PIPE_FIFO_SIZEW_WRITE
	.comm	_PKT_PIPE_FIFO_SIZEW,4,2        ; @PKT_PIPE_FIFO_SIZEW
l_.str.1:                               ; @.str.1
	.asciz	"HSS_SET_PKT_FIFO"

	.comm	_PKT_PIPE_MODE_WRITE,4,2        ; @PKT_PIPE_MODE_WRITE
	.comm	_NPE_PKT_MODE_HDLC,4,2          ; @NPE_PKT_MODE_HDLC
l_.str.2:                               ; @.str.2
	.asciz	"HSS_SET_PKT_MODE"

	.comm	_PKT_PIPE_RX_SIZE_WRITE,4,2     ; @PKT_PIPE_RX_SIZE_WRITE
	.comm	_HDLC_MAX_MRU,4,2               ; @HDLC_MAX_MRU
l_.str.3:                               ; @.str.3
	.asciz	"HSS_SET_PKT_RX_SIZE"

	.comm	_PKT_PIPE_IDLE_PATTERN_WRITE,4,2 ; @PKT_PIPE_IDLE_PATTERN_WRITE
l_.str.4:                               ; @.str.4
	.asciz	"HSS_SET_PKT_IDLE"

	.no_dead_strip	_hss_load_firmware
.subsections_via_symbols
