	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_group_set_name           ## -- Begin function iommu_group_set_name
	.p2align	4, 0x90
_iommu_group_set_name:                  ## @iommu_group_set_name
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_iommu_group_attr_name@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_iommu_group_remove_file
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
	testq	%r14, %r14
	je	LBB0_7
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kstrdup
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_iommu_group_attr_name@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_iommu_group_create_file
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
	jmp	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iommu_group_attr_name,4,2      ## @iommu_group_attr_name
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_group_set_name           ; -- Begin function iommu_group_set_name
	.p2align	2
_iommu_group_set_name:                  ; @iommu_group_set_name
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, _iommu_group_attr_name@GOTPAGE
Lloh1:
	ldr	x1, [x1, _iommu_group_attr_name@GOTPAGEOFF]
	mov	x0, x19
	bl	_iommu_group_remove_file
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	cbz	x20, LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kstrdup
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.3:
Lloh5:
	adrp	x1, _iommu_group_attr_name@GOTPAGE
Lloh6:
	ldr	x1, [x1, _iommu_group_attr_name@GOTPAGEOFF]
	mov	x0, x19
	bl	_iommu_group_create_file
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_iommu_group_attr_name,4,2      ; @iommu_group_attr_name
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
