	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_modify_device
_ipath_modify_device:                   ## @ipath_modify_device
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	_IB_DEVICE_MODIFY_SYS_IMAGE_GUID@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_IB_DEVICE_MODIFY_NODE_DESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	notl	%edx
	testl	%esi, %edx
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %r12d
	movq	%rdi, %r14
	testl	%esi, %ecx
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	4(%r15), %esi
	movl	$64, %edx
	callq	_memcpy
	movl	(%rbx), %eax
LBB0_4:
	xorl	%ebx, %ebx
	testl	%r12d, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	callq	_cpu_to_be64
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_to_idev
	movl	%r15d, (%rax)
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_DEVICE_MODIFY_SYS_IMAGE_GUID,4,2 ## @IB_DEVICE_MODIFY_SYS_IMAGE_GUID
	.comm	_IB_DEVICE_MODIFY_NODE_DESC,4,2 ## @IB_DEVICE_MODIFY_NODE_DESC
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ipath_modify_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_modify_device
_ipath_modify_device:                   ; @ipath_modify_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x22, _IB_DEVICE_MODIFY_SYS_IMAGE_GUID@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IB_DEVICE_MODIFY_SYS_IMAGE_GUID@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _IB_DEVICE_MODIFY_NODE_DESC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_DEVICE_MODIFY_NODE_DESC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bics	wzr, w1, w10
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	tst	w9, w1
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	mov	w2, #64
	bl	_memcpy
	ldr	w8, [x22]
LBB0_4:
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x20]
	bl	_cpu_to_be64
	mov	x20, x0
	mov	x0, x19
	bl	_to_idev
	mov	x8, x0
	mov	w0, #0
	str	w20, [x8]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_DEVICE_MODIFY_SYS_IMAGE_GUID,4,2 ; @IB_DEVICE_MODIFY_SYS_IMAGE_GUID
	.comm	_IB_DEVICE_MODIFY_NODE_DESC,4,2 ; @IB_DEVICE_MODIFY_NODE_DESC
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ipath_modify_device
.subsections_via_symbols
