	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_get_dma_safe_msg_buf       ## -- Begin function i2c_get_dma_safe_msg_buf
	.p2align	4, 0x90
_i2c_get_dma_safe_msg_buf:              ## @i2c_get_dma_safe_msg_buf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movl	16(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_2:
	movl	(%r14), %edx
	xorl	%eax, %eax
	cmpl	%ebx, %edx
	jb	LBB0_6
## %bb.3:
	testl	%edx, %edx
	je	LBB0_6
## %bb.4:
	movq	_I2C_M_DMA_SAFE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_7
## %bb.5:
	movq	8(%r14), %rax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	16(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_8
## %bb.9:
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kzalloc                        ## TAILCALL
LBB0_8:
	movq	8(%r14), %rdi
	movl	(%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kmemdup                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA buffer for addr=0x%02x with length 0 is bogus\n"

	.comm	_I2C_M_DMA_SAFE,4,2             ## @I2C_M_DMA_SAFE
L_.str.1:                               ## @.str.1
	.asciz	"using bounce buffer for addr=0x%02x, len=%d\n"

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_get_dma_safe_msg_buf       ; -- Begin function i2c_get_dma_safe_msg_buf
	.p2align	2
_i2c_get_dma_safe_msg_buf:              ; @i2c_get_dma_safe_msg_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	cbnz	w1, LBB0_2
; %bb.1:
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, w20
	ccmp	w8, #0, #4, hs
	b.ne	LBB0_4
; %bb.3:
	mov	x0, #0
	b	LBB0_6
LBB0_4:
	ldr	w9, [x19, #4]
Lloh2:
	adrp	x10, _I2C_M_DMA_SAFE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _I2C_M_DMA_SAFE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.5:
	ldr	x0, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	w1, [x19, #16]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19, #4]
Lloh7:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_kzalloc
LBB0_9:
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_kmemdup
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA buffer for addr=0x%02x with length 0 is bogus\n"

	.comm	_I2C_M_DMA_SAFE,4,2             ; @I2C_M_DMA_SAFE
l_.str.1:                               ; @.str.1
	.asciz	"using bounce buffer for addr=0x%02x, len=%d\n"

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
