	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mps_map_btdh                   ## -- Begin function mps_map_btdh
	.p2align	4, 0x90
_mps_map_btdh:                          ## @mps_map_btdh
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	(%rdx), %rax
	movq	%rax, -32(%rbp)
	movq	(%rcx), %rax
	movq	%rax, -40(%rbp)
	movq	(%rsi), %rax
	movq	%rax, -48(%rbp)
	movq	_MPTIOCTL_BTDH_MAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_3
LBB0_2:
	movq	-32(%rbp), %rax
	movq	%rax, (%rbx)
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	movq	-48(%rbp), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPTIOCTL_BTDH_MAPPING,4,2      ## @MPTIOCTL_BTDH_MAPPING
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to map bus/target/device"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mps_map_btdh                   ; -- Begin function mps_map_btdh
	.p2align	2
_mps_map_btdh:                          ; @mps_map_btdh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	ldr	x10, [x2]
	ldr	x8, [x3]
	ldr	x9, [x1]
	stp	x8, x10, [sp, #16]
	str	x9, [sp, #8]
Lloh0:
	adrp	x8, _MPTIOCTL_BTDH_MAPPING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPTIOCTL_BTDH_MAPPING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_3
LBB0_2:
	mov	w22, #0
	ldr	x8, [sp, #24]
	str	x8, [x21]
	ldp	x9, x8, [sp, #8]
	str	x8, [x19]
	str	x9, [x20]
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MPTIOCTL_BTDH_MAPPING,4,2      ; @MPTIOCTL_BTDH_MAPPING
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to map bus/target/device"

.subsections_via_symbols
