	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm3510_hab_send_request
_bcm3510_hab_send_request:              ## @bcm3510_hab_send_request
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	-72(%rbp), %rdx
	movl	$168, %esi
	callq	_bcm3510_readB
	testl	%eax, %eax
	js	LBB0_16
## %bb.1:
	cmpl	$0, -72(%rbp)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	movl	$0, -72(%rbp)
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	movl	$168, %esi
	callq	_bcm3510_writeB
LBB0_3:
	movq	$0, -80(%rbp)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	movl	$166, %esi
	callq	_bcm3510_writeB
	testl	%eax, %eax
	js	LBB0_16
## %bb.4:
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.5:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %eax
	movl	%eax, -88(%rbp)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	movl	$167, %esi
	callq	_bcm3510_writeB
	testl	%eax, %eax
	js	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_7
LBB0_8:
	movq	$0, -64(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -72(%rbp)
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	movl	$168, %esi
	callq	_bcm3510_writeB
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	addq	%rdi, %r14
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	leaq	L_.str.1(%rip), %r15
	leaq	-72(%rbp), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_deb_info
	movl	$10, %edi
	callq	_msleep
	movq	%r13, %rdi
	movl	$168, %esi
	movq	%r12, %rdx
	callq	_bcm3510_readB
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, -72(%rbp)
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_11
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	callq	_deb_info
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_13:
	xorl	%eax, %eax
LBB0_16:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HAB is running already - clearing it.\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"waiting for HAB to complete\n"

L_.str.2:                               ## @.str.2
	.asciz	"send_request execution timed out.\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_bcm3510_hab_send_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm3510_hab_send_request
_bcm3510_hab_send_request:              ; @bcm3510_hab_send_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x2, sp, #32
	mov	w1, #168
	bl	_bcm3510_readB
	tbnz	w0, #31, LBB0_16
; %bb.1:
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	str	wzr, [sp, #32]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	w1, #168
	bl	_bcm3510_writeB
LBB0_3:
	str	xzr, [sp, #24]
	mov	x2, sp
	mov	x0, x19
	mov	w1, #166
	bl	_bcm3510_writeB
	tbnz	w0, #31, LBB0_16
; %bb.4:
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w21, w21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	mov	x2, sp
	mov	x0, x19
	mov	w1, #167
	bl	_bcm3510_writeB
	tbnz	w0, #31, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #4
	subs	x21, x21, #1
	b.ne	LBB0_6
LBB0_8:
	str	xzr, [sp, #40]
	movi.2s	v0, #1
	str	d0, [sp, #32]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	w1, #168
	bl	_bcm3510_writeB
	tbnz	w0, #31, LBB0_16
; %bb.9:
Lloh2:
	adrp	x22, _jiffies@GOTPAGE
Lloh3:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldrsw	x0, [x22]
Lloh4:
	adrp	x8, _HZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh6:
	ldrsw	x8, [x8]
	add	x20, x8, x0
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_14
; %bb.10:
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_deb_info
	mov	w0, #10
	bl	_msleep
	add	x2, sp, #32
	mov	x0, x19
	mov	w1, #168
	bl	_bcm3510_readB
	tbnz	w0, #31, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	bl	_time_before
	cbnz	x0, LBB0_11
LBB0_14:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
Lloh11:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HAB is running already - clearing it.\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"waiting for HAB to complete\n"

l_.str.2:                               ; @.str.2
	.asciz	"send_request execution timed out.\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_bcm3510_hab_send_request
.subsections_via_symbols
