	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwmbt_get_fwname               ## -- Begin function iwmbt_get_fwname
	.p2align	4, 0x90
_iwmbt_get_fwname:                      ## @iwmbt_get_fwname
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leal	-17(%rdi), %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.4:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_le16toh
	movl	%eax, %r12d
	movl	4(%rbx), %edi
	callq	_le16toh
	movl	%eax, %r13d
	movl	8(%rbx), %edi
	callq	_le16toh
	movslq	%eax, %r9
	movq	%r15, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	jmp	LBB0_3
LBB0_1:
	leal	-11(%rdi), %eax
	cmpl	$1, %eax
	ja	LBB0_5
## %bb.2:
	movq	%rsi, %r12
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_le16toh
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_le16toh
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r15, %r9
LBB0_3:
	xorl	%eax, %eax
	callq	_asprintf
LBB0_6:
	movq	-48(%rbp), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	$0, -48(%rbp)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/ibt-%u-%u.%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s/ibt-%u-%u-%u.%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwmbt_get_fwname               ; -- Begin function iwmbt_get_fwname
	.p2align	2
_iwmbt_get_fwname:                      ; @iwmbt_get_fwname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	ldr	w0, [x0]
	sub	w8, w0, #17
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	bl	_le16toh
	mov	x22, x0
	ldr	w0, [x21, #4]
	bl	_le16toh
	mov	x23, x0
	ldr	w0, [x21, #8]
	bl	_le16toh
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x5, w0
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	bl	_asprintf
	b	LBB0_5
LBB0_2:
	sub	w8, w0, #11
	cmp	w8, #1
	b.hi	LBB0_4
; %bb.3:
	mov	x22, x1
	bl	_le16toh
	mov	x21, x0
	ldr	w0, [x22]
	bl	_le16toh
	mov	x4, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	mov	x3, x21
	mov	x5, x20
	bl	_asprintf
	b	LBB0_5
LBB0_4:
	str	xzr, [sp, #8]
LBB0_5:
	ldr	x0, [sp, #8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/ibt-%u-%u.%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s/ibt-%u-%u-%u.%s"

.subsections_via_symbols
