	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modify_device
_modify_device:                         ## @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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_dd_from_ibdev
	movq	%rax, %r13
	movq	_IB_DEVICE_MODIFY_SYS_IMAGE_GUID@GOTPCREL(%rip), %rcx
	movq	_IB_DEVICE_MODIFY_NODE_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	notl	%ecx
	testl	%r15d, %ecx
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testl	%r15d, %eax
	je	LBB0_6
## %bb.3:
	movl	(%r12), %edi
	movl	4(%r14), %esi
	movq	_IB_DEVICE_NODE_DESC_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r12, %rdi
	callq	_hfi1_node_desc_chg
	incq	%rbx
	movl	(%r13), %eax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	xorl	%r12d, %r12d
	movq	_IB_DEVICE_MODIFY_SYS_IMAGE_GUID@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_10
## %bb.7:
	movl	(%r14), %edi
	callq	_cpu_to_be64
	movq	_ib_hfi1_sys_image_guid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	cmpl	$0, (%r13)
	je	LBB0_10
## %bb.8:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r14, %rdi
	callq	_hfi1_sys_guid_chg
	incq	%rbx
	movl	(%r13), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_9
	jmp	LBB0_10
	.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
	.comm	_IB_DEVICE_NODE_DESC_MAX,4,2    ## @IB_DEVICE_NODE_DESC_MAX
	.comm	_ib_hfi1_sys_image_guid,4,2     ## @ib_hfi1_sys_image_guid
	.no_dead_strip	_modify_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modify_device
_modify_device:                         ; @modify_device
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_dd_from_ibdev
Lloh0:
	adrp	x23, _IB_DEVICE_MODIFY_SYS_IMAGE_GUID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IB_DEVICE_MODIFY_SYS_IMAGE_GUID@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh2:
	adrp	x8, _IB_DEVICE_MODIFY_NODE_DESC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_DEVICE_MODIFY_NODE_DESC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w9, w8, w9
	bics	wzr, w21, w9
	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_11
LBB0_2:
	mov	x19, x0
	tst	w8, w21
	b.eq	LBB0_6
; %bb.3:
	ldr	w0, [x22]
	ldr	w1, [x20, #4]
Lloh8:
	adrp	x8, _IB_DEVICE_NODE_DESC_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_DEVICE_NODE_DESC_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	bl	_hfi1_node_desc_chg
	add	x24, x24, #1
	ldr	w8, [x19]
	add	x22, x22, #4
	cmp	x24, x8
	b.lo	LBB0_5
LBB0_6:
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.7:
	ldr	w0, [x20]
	bl	_cpu_to_be64
Lloh11:
	adrp	x8, _ib_hfi1_sys_image_guid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ib_hfi1_sys_image_guid@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.8:
	mov	x20, #0
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_hfi1_sys_guid_chg
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_9
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.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
	.comm	_IB_DEVICE_NODE_DESC_MAX,4,2    ; @IB_DEVICE_NODE_DESC_MAX
	.comm	_ib_hfi1_sys_image_guid,4,2     ; @ib_hfi1_sys_image_guid
	.no_dead_strip	_modify_device
.subsections_via_symbols
