	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_pad
_brcmf_sdio_pad:                        ## @brcmf_sdio_pad
	.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, %r8
	cmpl	$0, (%rdi)
	je	LBB0_6
## %bb.1:
	movl	4(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.2:
	movl	(%r8), %eax
	cmpl	%ecx, %eax
	jle	LBB0_6
## %bb.3:
	cltd
	idivl	%ecx
	subl	%edx, %ecx
	movl	%ecx, (%rsi)
	cmpl	(%rdi), %ecx
	jg	LBB0_9
## %bb.4:
	cmpl	4(%rdi), %ecx
	jge	LBB0_9
## %bb.5:
	movslq	(%r8), %rax
	movslq	%ecx, %rdi
	addq	%rax, %rdi
	movq	_BRCMF_FIRSTREAD@GOTPCREL(%rip), %rax
	movq	%rdi, %rcx
	addq	(%rax), %rcx
	movq	_MAX_RX_DATASZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_8
LBB0_9:
	popq	%rbp
	retq
LBB0_6:
	movl	(%r8), %esi
	movl	8(%rdi), %edi
	movl	%esi, %eax
	cltd
	idivl	%edi
	testl	%edx, %edx
	je	LBB0_9
## %bb.7:
	addl	%esi, %edi
	subl	%edx, %edi
LBB0_8:
	movl	%edi, (%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_FIRSTREAD,8,3            ## @BRCMF_FIRSTREAD
	.comm	_MAX_RX_DATASZ,8,3              ## @MAX_RX_DATASZ
	.no_dead_strip	_brcmf_sdio_pad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_pad
_brcmf_sdio_pad:                        ; @brcmf_sdio_pad
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.2:
	ldr	w9, [x2]
	cmp	w9, w8
	b.le	LBB0_7
; %bb.3:
	sdiv	w10, w9, w8
	neg	w9, w9
	madd	w9, w10, w8, w9
	add	w8, w8, w9
	str	w8, [x1]
	ldr	w9, [x0]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.4:
	ldr	w9, [x0, #4]
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.5:
	ldrsw	x9, [x2]
	add	x8, x9, w8, sxtw
Lloh0:
	adrp	x9, _BRCMF_FIRSTREAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMF_FIRSTREAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _MAX_RX_DATASZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_RX_DATASZ@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x9, x9, x8
	cmp	x9, x10
	b.lt	LBB0_9
LBB0_6:
	ret
LBB0_7:
	ldr	w8, [x2]
	ldr	w9, [x0, #8]
	sdiv	w10, w8, w9
	msub	w10, w10, w9, w8
	cbz	w10, LBB0_6
; %bb.8:
	add	w8, w9, w8
	sub	w8, w8, w10
LBB0_9:
	str	w8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_FIRSTREAD,8,3            ; @BRCMF_FIRSTREAD
	.comm	_MAX_RX_DATASZ,8,3              ; @MAX_RX_DATASZ
	.no_dead_strip	_brcmf_sdio_pad
.subsections_via_symbols
