	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bu21029_put_chip_in_reset
_bu21029_put_chip_in_reset:             ## @bu21029_put_chip_in_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movq	_STOP_DELAY_MIN_US@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STOP_DELAY_MAX_US@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_usleep_range                   ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STOP_DELAY_MIN_US,4,2          ## @STOP_DELAY_MIN_US
	.comm	_STOP_DELAY_MAX_US,4,2          ## @STOP_DELAY_MAX_US
	.no_dead_strip	_bu21029_put_chip_in_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bu21029_put_chip_in_reset
_bu21029_put_chip_in_reset:             ; @bu21029_put_chip_in_reset
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
Lloh0:
	adrp	x8, _STOP_DELAY_MIN_US@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STOP_DELAY_MIN_US@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _STOP_DELAY_MAX_US@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STOP_DELAY_MAX_US@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_usleep_range
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STOP_DELAY_MIN_US,4,2          ; @STOP_DELAY_MIN_US
	.comm	_STOP_DELAY_MAX_US,4,2          ; @STOP_DELAY_MAX_US
	.no_dead_strip	_bu21029_put_chip_in_reset
.subsections_via_symbols
