	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apb_log_get
_apb_log_get:                           ## @apb_log_get
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_APB1_LOG_MSG_SIZE@GOTPCREL(%rip), %r12
	movq	_ES2_USB_CTRL_TIMEOUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_GB_APB_REQUEST_LOG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	(%r12), %r10d
	movl	(%r13), %r11d
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r10
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_kfifo_in
	jmp	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_APB_REQUEST_LOG,4,2         ## @GB_APB_REQUEST_LOG
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_APB1_LOG_MSG_SIZE,4,2          ## @APB1_LOG_MSG_SIZE
	.comm	_ES2_USB_CTRL_TIMEOUT,4,2       ## @ES2_USB_CTRL_TIMEOUT
	.no_dead_strip	_apb_log_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apb_log_get
_apb_log_get:                           ; @apb_log_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _GB_APB_REQUEST_LOG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GB_APB_REQUEST_LOG@GOTPAGEOFF]
Lloh2:
	adrp	x23, _USB_DIR_IN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _USB_DIR_IN@GOTPAGEOFF]
Lloh4:
	adrp	x24, _USB_TYPE_VENDOR@GOTPAGE
Lloh5:
	ldr	x24, [x24, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh6:
	adrp	x25, _USB_RECIP_INTERFACE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _APB1_LOG_MSG_SIZE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _APB1_LOG_MSG_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x27, _ES2_USB_CTRL_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _ES2_USB_CTRL_TIMEOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x20, #4]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w2, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w3, w8, w9
	ldr	w7, [x26]
	ldr	w8, [x27]
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	bl	_usb_control_msg
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_kfifo_in
	b	LBB0_1
LBB0_3:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_APB_REQUEST_LOG,4,2         ; @GB_APB_REQUEST_LOG
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_APB1_LOG_MSG_SIZE,4,2          ; @APB1_LOG_MSG_SIZE
	.comm	_ES2_USB_CTRL_TIMEOUT,4,2       ; @ES2_USB_CTRL_TIMEOUT
	.no_dead_strip	_apb_log_get
.subsections_via_symbols
