	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_svc_intf_set_power_mode_hibernate ## -- Begin function gb_svc_intf_set_power_mode_hibernate
	.p2align	4, 0x90
_gb_svc_intf_set_power_mode_hibernate:  ## @gb_svc_intf_set_power_mode_hibernate
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-64(%rbp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r14d, -44(%rbp)
	movq	_GB_SVC_UNIPRO_HS_SERIES_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_GB_SVC_UNIPRO_HIBERNATE_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%rax, -64(%rbp)
	movl	4(%r15), %edi
	movq	_GB_SVC_TYPE_INTF_SET_PWRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %r8
	movq	%rbx, %rdx
	movl	$24, %ecx
	movl	$4, %r9d
	callq	_gb_operation_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-40(%rbp), %ecx
	movq	_GB_SVC_SETPWRM_PWR_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movl	%ebx, %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_SVC_UNIPRO_HS_SERIES_A,4,2  ## @GB_SVC_UNIPRO_HS_SERIES_A
	.comm	_GB_SVC_UNIPRO_HIBERNATE_MODE,8,3 ## @GB_SVC_UNIPRO_HIBERNATE_MODE
	.comm	_GB_SVC_TYPE_INTF_SET_PWRM,4,2  ## @GB_SVC_TYPE_INTF_SET_PWRM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to send set power mode operation to interface %u: %d\n"

	.comm	_GB_SVC_SETPWRM_PWR_OK,4,2      ## @GB_SVC_SETPWRM_PWR_OK
L_.str.1:                               ## @.str.1
	.asciz	"failed to hibernate the link for interface %u: %u\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_svc_intf_set_power_mode_hibernate ; -- Begin function gb_svc_intf_set_power_mode_hibernate
	.p2align	2
_gb_svc_intf_set_power_mode_hibernate:  ; @gb_svc_intf_set_power_mode_hibernate
	.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, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _GB_SVC_UNIPRO_HS_SERIES_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_SVC_UNIPRO_HS_SERIES_A@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w19, [sp, #24]
Lloh3:
	adrp	x8, _GB_SVC_UNIPRO_HIBERNATE_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GB_SVC_UNIPRO_HIBERNATE_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #8]
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x8, _GB_SVC_TYPE_INTF_SET_PWRM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GB_SVC_TYPE_INTF_SET_PWRM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x4, sp
	mov	w3, #24
	mov	w5, #4
	bl	_gb_operation_sync
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w3, [sp]
Lloh9:
	adrp	x8, _GB_SVC_SETPWRM_PWR_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GB_SVC_SETPWRM_PWR_OK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_5
LBB0_3:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_SVC_UNIPRO_HS_SERIES_A,4,2  ; @GB_SVC_UNIPRO_HS_SERIES_A
	.comm	_GB_SVC_UNIPRO_HIBERNATE_MODE,8,3 ; @GB_SVC_UNIPRO_HIBERNATE_MODE
	.comm	_GB_SVC_TYPE_INTF_SET_PWRM,4,2  ; @GB_SVC_TYPE_INTF_SET_PWRM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to send set power mode operation to interface %u: %d\n"

	.comm	_GB_SVC_SETPWRM_PWR_OK,4,2      ; @GB_SVC_SETPWRM_PWR_OK
l_.str.1:                               ; @.str.1
	.asciz	"failed to hibernate the link for interface %u: %u\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
