	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osi_load_firmware
_osi_load_firmware:                     ## @osi_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_FIRMWARE_NAME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	8(%rdi), %rdx
	leaq	-32(%rbp), %rdi
	callq	_request_firmware
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_1:
	movq	-32(%rbp), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	movl	(%rax,%rbx,4), %edi
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	addq	$2, %rsi
	callq	_outb
	movl	$50, %edi
	callq	_udelay
	incq	%rbx
	movq	-32(%rbp), %rdi
	movslq	(%rdi), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	callq	_release_firmware
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRMWARE_NAME,4,2              ## @FIRMWARE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load firmware \"%s\"\n"

	.no_dead_strip	_osi_load_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osi_load_firmware
_osi_load_firmware:                     ; @osi_load_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x21, _FIRMWARE_NAME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FIRMWARE_NAME@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, x0, #8
	add	x0, sp, #8
	bl	_request_firmware
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x21]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_6
LBB0_2:
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	ldr	w0, [x8, x21, lsl #2]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, x8, #2
	bl	_outb
	mov	w0, #50
	bl	_udelay
	add	x21, x21, #1
	ldr	x0, [sp, #8]
	ldrsw	x8, [x0]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	bl	_release_firmware
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRMWARE_NAME,4,2              ; @FIRMWARE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load firmware \"%s\"\n"

	.no_dead_strip	_osi_load_firmware
.subsections_via_symbols
