	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function download_offload_pseudocode
_download_offload_pseudocode:           ## @download_offload_pseudocode
	.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, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movl	(%r12), %r15d
	movq	$0, -48(%rbp)
	movl	(%rdi), %edi
	movl	16(%r12), %ecx
	movl	20(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	%eax, %ebx
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%r14), %edi
	addl	%ebx, %edi
	movl	$4, %esi
	subl	%ebx, %esi
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	addl	%eax, %ebx
	incq	%r13
	cmpq	%r13, %r15
	jne	LBB0_2
LBB0_3:
	movl	$4, %esi
	subl	%ebx, %esi
	addl	(%r14), %ebx
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_snprintf
	movq	8(%r14), %rdi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_info
	movl	(%r14), %esi
	addq	$4, %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	jns	LBB0_6
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edx
	callq	_strncpy
	movl	(%r14), %esi
	leaq	-48(%rbp), %rdi
	movq	%r12, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	js	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	___download_offload_pseudocode
	movq	-48(%rbp), %rdi
	callq	_release_firmware
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strncpy
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vub_%04X%04X"

L_.str.1:                               ## @.str.1
	.asciz	"_%04X%04X"

L_.str.2:                               ## @.str.2
	.asciz	".bin"

L_.str.3:                               ## @.str.3
	.asciz	"requesting offload firmware %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"vub_default.bin"

L_.str.5:                               ## @.str.5
	.asciz	"no SDIO offload firmware found"

	.no_dead_strip	_download_offload_pseudocode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function download_offload_pseudocode
_download_offload_pseudocode:           ; @download_offload_pseudocode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldr	w21, [x22]
	str	xzr, [sp, #24]
	ldr	w0, [x0]
	ldp	w8, w9, [x22, #16]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w23, #4
	mov	w1, #4
	bl	_snprintf
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	lsl	x25, x21, #3
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x24]
	ldr	w9, [x19]
	add	w0, w9, w20
	sub	w1, w23, w20
	ldp	w9, w8, [x8]
	stp	x9, x8, [sp]
	mov	x2, x21
	bl	_snprintf
	add	w20, w0, w20
	add	x24, x24, #8
	cmp	x25, x24
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [x19]
	add	w0, w8, w20
	sub	w1, w23, w20
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_snprintf
	ldr	x0, [x19, #8]
	ldr	w2, [x19]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
	ldr	w1, [x19]
	add	x20, x22, #4
	add	x0, sp, #24
	mov	x2, x20
	bl	_request_firmware
	tbz	w0, #31, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_strncpy
	ldr	w1, [x19]
	add	x0, sp, #24
	mov	x2, x20
	bl	_request_firmware
	tbnz	w0, #31, LBB0_7
LBB0_5:
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	___download_offload_pseudocode
	ldr	x0, [sp, #24]
	bl	_release_firmware
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_strncpy
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vub_%04X%04X"

l_.str.1:                               ; @.str.1
	.asciz	"_%04X%04X"

l_.str.2:                               ; @.str.2
	.asciz	".bin"

l_.str.3:                               ; @.str.3
	.asciz	"requesting offload firmware %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"vub_default.bin"

l_.str.5:                               ; @.str.5
	.asciz	"no SDIO offload firmware found"

	.no_dead_strip	_download_offload_pseudocode
.subsections_via_symbols
