	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htc_get_credit_padding
_htc_get_credit_padding:                ## @htc_get_credit_padding
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r9
	movl	(%rsi), %ecx
	xorl	%r8d, %r8d
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	_HTC_FLGS_TX_BNDL_PAD_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %r8d
	testl	%eax, (%r9)
	je	LBB0_4
## %bb.2:
	subl	%ecx, %edi
	cmoval	%edi, %edx
	leal	-1(%rdx), %eax
	cmpl	$254, %eax
	ja	LBB0_4
## %bb.3:
	addl	%edx, %ecx
	movl	%ecx, (%rsi)
	movl	%edx, %r8d
LBB0_4:
	movl	%r8d, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTC_FLGS_TX_BNDL_PAD_EN,4,2    ## @HTC_FLGS_TX_BNDL_PAD_EN
	.no_dead_strip	_htc_get_credit_padding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htc_get_credit_padding
_htc_get_credit_padding:                ; @htc_get_credit_padding
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	udiv	w9, w8, w0
	msub	w9, w9, w0, w8
	cbz	w9, LBB0_5
; %bb.1:
	ldr	w10, [x2]
Lloh0:
	adrp	x11, _HTC_FLGS_TX_BNDL_PAD_EN@GOTPAGE
Lloh1:
	ldr	x11, [x11, _HTC_FLGS_TX_BNDL_PAD_EN@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.2:
	subs	w10, w0, w8
	csel	w0, w10, w9, hi
	sub	w9, w0, #1
	cmp	w9, #254
	b.hi	LBB0_4
; %bb.3:
	add	w8, w0, w8
	str	w8, [x1]
	ret
LBB0_4:
	mov	w0, #-1
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HTC_FLGS_TX_BNDL_PAD_EN,4,2    ; @HTC_FLGS_TX_BNDL_PAD_EN
	.no_dead_strip	_htc_get_credit_padding
.subsections_via_symbols
