	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oma_dm_exec_get_cert
_oma_dm_exec_get_cert:                  ## @oma_dm_exec_get_cert
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_MSG_INFO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_write_summary
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rsi
	callq	_get_node
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_xml_node_get_text
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_xml_node_from_buf
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_xml_node_get_text_free
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_debug_dump_node
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_xml_node_get_localname
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_os_strcasecmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_5:
	movl	(%r12), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_6:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_9:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movq	_DM_RESP_BAD_REQUEST@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_osu_get_certificate
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_xml_node_free
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.13:
	movq	_DM_RESP_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	movq	_DM_RESP_COMMAND_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Client certificate enrollment"

L_.str.1:                               ## @.str.1
	.asciz	"Item/Data"

L_.str.2:                               ## @.str.2
	.asciz	"No Data node found"

	.comm	_DM_RESP_BAD_REQUEST,4,2        ## @DM_RESP_BAD_REQUEST
L_.str.3:                               ## @.str.3
	.asciz	"Invalid data"

L_.str.4:                               ## @.str.4
	.asciz	"Data: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Could not parse Item/Data node contents"

L_.str.6:                               ## @.str.6
	.asciz	"OMA-DM getCertificate"

L_.str.7:                               ## @.str.7
	.asciz	"getCertificate"

L_.str.8:                               ## @.str.8
	.asciz	"Unexpected getCertificate node name '%s'"

	.comm	_DM_RESP_OK,4,2                 ## @DM_RESP_OK
	.comm	_DM_RESP_COMMAND_FAILED,4,2     ## @DM_RESP_COMMAND_FAILED
	.no_dead_strip	_oma_dm_exec_get_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oma_dm_exec_get_cert
_oma_dm_exec_get_cert:                  ; @oma_dm_exec_get_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	mov	x1, x21
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x21
	bl	_write_summary
	ldr	w0, [x19]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_get_node
	cbz	x0, LBB0_6
; %bb.1:
	mov	x1, x0
	ldr	w0, [x19]
	bl	_xml_node_get_text
	mov	x21, x0
	ldr	w0, [x22]
	cbz	x21, LBB0_7
; %bb.2:
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19]
	mov	x1, x21
	bl	_xml_node_from_buf
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_xml_node_get_text_free
	cbz	x20, LBB0_8
; %bb.3:
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_debug_dump_node
	ldr	w0, [x19]
	mov	x1, x20
	bl	_xml_node_get_localname
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x1, l_.str.7@PAGE
Lloh11:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_os_strcasecmp
	cbz	x0, LBB0_11
LBB0_5:
	ldr	w0, [x22]
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.8@PAGE
Lloh13:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	w0, [x22]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	w0, [x22]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_9:
	bl	_wpa_printf
Lloh20:
	adrp	x8, _DM_RESP_BAD_REQUEST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DM_RESP_BAD_REQUEST@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_osu_get_certificate
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x20
	bl	_xml_node_free
Lloh22:
	adrp	x8, _DM_RESP_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DM_RESP_OK@GOTPAGEOFF]
Lloh24:
	adrp	x9, _DM_RESP_COMMAND_FAILED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DM_RESP_COMMAND_FAILED@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, eq
	b	LBB0_10
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Client certificate enrollment"

l_.str.1:                               ; @.str.1
	.asciz	"Item/Data"

l_.str.2:                               ; @.str.2
	.asciz	"No Data node found"

	.comm	_DM_RESP_BAD_REQUEST,4,2        ; @DM_RESP_BAD_REQUEST
l_.str.3:                               ; @.str.3
	.asciz	"Invalid data"

l_.str.4:                               ; @.str.4
	.asciz	"Data: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Could not parse Item/Data node contents"

l_.str.6:                               ; @.str.6
	.asciz	"OMA-DM getCertificate"

l_.str.7:                               ; @.str.7
	.asciz	"getCertificate"

l_.str.8:                               ; @.str.8
	.asciz	"Unexpected getCertificate node name '%s'"

	.comm	_DM_RESP_OK,4,2                 ; @DM_RESP_OK
	.comm	_DM_RESP_COMMAND_FAILED,4,2     ; @DM_RESP_COMMAND_FAILED
	.no_dead_strip	_oma_dm_exec_get_cert
.subsections_via_symbols
