	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atusb_get_and_show_build
_atusb_get_and_show_build:              ## @atusb_get_and_show_build
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	_ATUSB_BUILD_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	incq	%rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_ATUSB_BUILD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ATUSB_REQ_FROM_DEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$1000                           ## imm = 0x3E8
	pushq	(%rbx)
	pushq	%r12
	callq	_atusb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	movb	$0, (%r12,%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_dev_info
LBB0_4:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATUSB_BUILD_SIZE,8,3           ## @ATUSB_BUILD_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATUSB_BUILD,4,2                ## @ATUSB_BUILD
	.comm	_ATUSB_REQ_FROM_DEV,4,2         ## @ATUSB_REQ_FROM_DEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware: build %s\n"

	.no_dead_strip	_atusb_get_and_show_build
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atusb_get_and_show_build
_atusb_get_and_show_build:              ; @atusb_get_and_show_build
	.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	x21, x0
Lloh0:
	adrp	x22, _ATUSB_BUILD_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ATUSB_BUILD_SIZE@GOTPAGEOFF]
	ldr	x19, [x0]
	ldr	x8, [x22]
	add	x0, x8, #1
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh5:
	adrp	x8, _ATUSB_BUILD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATUSB_BUILD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _ATUSB_REQ_FROM_DEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATUSB_REQ_FROM_DEV@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	ldr	x7, [x22]
	mov	w8, #1000
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	bl	_atusb_control_msg
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
; %bb.2:
	strb	wzr, [x20, w21, uxtw]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_info
LBB0_3:
	mov	x0, x20
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ATUSB_BUILD_SIZE,8,3           ; @ATUSB_BUILD_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATUSB_BUILD,4,2                ; @ATUSB_BUILD
	.comm	_ATUSB_REQ_FROM_DEV,4,2         ; @ATUSB_REQ_FROM_DEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware: build %s\n"

	.no_dead_strip	_atusb_get_and_show_build
.subsections_via_symbols
