	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_sdio_do_prog_firmware
_if_sdio_do_prog_firmware:              ## @if_sdio_do_prog_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%esi, %esi
	je	LBB0_1
## %bb.4:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_1:
	movq	%rcx, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_if_sdio_prog_helper
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_lbs_deb_sdio
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_if_sdio_prog_real
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_lbs_deb_sdio
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_if_sdio_finish_power_on        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find firmware (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Helper firmware loaded\n"

L_.str.2:                               ## @.str.2
	.asciz	"Firmware loaded\n"

	.no_dead_strip	_if_sdio_do_prog_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_sdio_do_prog_firmware
_if_sdio_do_prog_firmware:              ; @if_sdio_do_prog_firmware
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_err
LBB0_2:
	mov	x20, x3
	ldr	x19, [x0]
	mov	x0, x19
	mov	x1, x2
	bl	_if_sdio_prog_helper
	cbnz	w0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lbs_deb_sdio
	mov	x0, x19
	mov	x1, x20
	bl	_if_sdio_prog_real
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lbs_deb_sdio
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_if_sdio_finish_power_on
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find firmware (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Helper firmware loaded\n"

l_.str.2:                               ; @.str.2
	.asciz	"Firmware loaded\n"

	.no_dead_strip	_if_sdio_do_prog_firmware
.subsections_via_symbols
