	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function busdma_tag_derive
_busdma_tag_derive:                     ## @busdma_tag_derive
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdi
	subq	$8, %rsp
	leaq	-24(%rbp), %rax
	leaq	-28(%rbp), %rbx
	leaq	-36(%rbp), %r10
	leaq	-32(%rbp), %r11
	leaq	-40(%rbp), %r14
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-44(%rbp), %r9
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	pushq	%r11
	pushq	%r14
	callq	_PyArg_ParseTuple
	addq	$48, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	-20(%rbp), %edi
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movl	-40(%rbp), %r8d
	movl	-32(%rbp), %r9d
	movl	-36(%rbp), %r10d
	movl	-28(%rbp), %ebx
	movl	-24(%rbp), %eax
	subq	$8, %rsp
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_bd_tag_derive
	addq	$32, %rsp
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_Py_BuildValue
	jmp	LBB0_6
LBB0_4:
	movq	_PyExc_IOError@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PyErr_SetString
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ikkkkIkII"

	.comm	_PyExc_IOError,4,2              ## @PyExc_IOError
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"i"

	.no_dead_strip	_busdma_tag_derive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function busdma_tag_derive
_busdma_tag_derive:                     ; @busdma_tag_derive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x0, x1
	add	x8, sp, #32
	str	x8, [sp, #16]
	add	x8, sp, #36
	sub	x9, x29, #36
	stp	x9, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #28
	sub	x3, x29, #20
	sub	x4, x29, #24
	sub	x5, x29, #28
	sub	x6, x29, #32
	add	x7, sp, #40
	bl	_PyArg_ParseTuple
	cbz	w0, LBB0_4
; %bb.1:
	ldp	w0, w8, [sp, #28]
	ldp	w2, w1, [x29, #-24]
	ldp	w4, w3, [x29, #-32]
	ldp	w7, w5, [sp, #36]
	ldur	w6, [x29, #-36]
	str	w8, [sp]
	bl	_bd_tag_derive
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Py_BuildValue
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _PyExc_IOError@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PyExc_IOError@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
	mov	x0, x19
	bl	_PyErr_SetString
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ikkkkIkII"

	.comm	_PyExc_IOError,4,2              ; @PyExc_IOError
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"i"

	.no_dead_strip	_busdma_tag_derive
.subsections_via_symbols
